As the name suggests the ‘Control Instructions’ enable us to specify the order in which the various instructions in a program are to be executed by the computer. In other words, the control instructions determine the ‘flow of control’ in a program. There are four types of control instructions in C. They are:
The Sequence control instruction ensures that the instructions are executed in the same order in which they appear in the program. Decision and Case-control instructions allow the computer to make a decision as to which instruction is to be executed next.
A decision control instruction can be implemented in C using:
The Loop control instruction helps the computer to execute a group of statements repeatedly.