Control flow is the order that instructions are executed in a program. A control statement is a statement that determines the control flow of a set of instructions.
There are three fundamental forms of control that programming languages provide—
- Sequential control
- Selection control
- Iterative control.
Sequential control is an implicit form of control in which instructions are executed in the order that they are written. A program consisting of only sequential control is referred to as a “straight-line program.”
Selection control is provided by a control statement that selectively executes instructions
Iterative control is provided by an iterative control statement that repeatedly executes instructions. Each is based on a given condition. Collectively a set of instructions and the control statements controlling their execution is called a control structure.
![](https://bscbcanotes.wordpress.com/wp-content/uploads/2024/05/image-38.png?w=937)