4/2/11

Types of Control Statements:


We can classify control statement in two way:
1. Conditional Control statements
2. Unconditional Control statements 

 
1. Conditional Control Statement
In conditional control statements, flow of execution will be based on the given condition. i.e. by checking the condition, it will decide which part of the program have to execute.

The following are Conditional Control statements in C:
1. If statement
2. Switch Statement
3. Iterations / Loops:

2. Unconditional Control Statement:

In unconditional Control Statement, flow of execution will not based on any condition. Without checking any condition, it flow from one part of the program to another part of the same program is called Unconditional Control Statement.