In C, 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.
Types of control instructions in C
They are of four types:-
- Sequence control instruction : This ensure that the instructions are executed in the same order in which they appear in the program.
- Selection or Decision Control Instruction: This allow the computer to take a decision as to which instruction is to be executed next.
- Repetition or Loop Control Instruction: This helps computer to execute a group of statements repeatedly.
- Case Control Instruction: This is also allow the computer to take a decision as to which instruction is to be executed next.