C Programming Tutorial
Computer Tutorial

Design Control Statement



Design Control Statement

Design Control Statement is a part of program that can perform different sets of actions depending on the circumstances or situation.
In general, a programs written in C are executed sequentially, i.e. in the same order in which they appear in the program. A design Control statements, can execute a set of instruction in one situation, and an entirely different set of instructions to be executed in another situation. This kind of situation is dealt in C programs using a decision control instruction.

C has following decision making instructions :

»   The if statement
»   The if-else statement
»   Ternary operator ( ? )
»   goto statement
»   switch statement