- Introduction to C
- Decision Control Statements
- » The if statement
- » Multiple if statement
- » The if-else statement
- » Ternary operator ( ? )
- » goto statement
- » switch statement
- Loops in C
- Array in C
- Pointer in C
- String in C
- Function in C
- Structure in C
- Union in C
- File Handling in C
- Additional Tutorials on C
- Objective Question on C
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