In C, we generally have a flow of statements which are executed step by step. They are performed in the order they are specified. Suppose if we want to execute a set of statements when a condition is satisfied, then the Control Flow comes into play.
Control Flow is nothing but controlling the flow of statements execution. In C, we have different types of Control Flow Statements.
- If
- If...Else-If....Else
- Switch
- While
- For
- Do... While
We will get a detailed description of each of these control flow statements in the later sections. All these statements are used widely in to control the flow of statements based on the conditions.