Control instructions in C

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:-

  1. Sequence control instruction : This ensure that the instructions are executed in the same order in which they appear in the program.
  2. Selection or Decision Control Instruction: This allow the computer to take a decision as to which instruction is to be executed next.
  3. Repetition or Loop Control Instruction: This helps computer to execute a group of statements repeatedly.
  4. Case Control Instruction: This is also allow the computer to take a decision as to which instruction is to be executed next.

Recommended Post: