| C instruction set |
| |
| Control Instructions |
| |
| These types of instructions are used for controlling the sequence of execution of various statements in C program. It determines the 'flow of control' in a program. |
| |
| There are four types of control instructions in C: |
| |
| 1. Sequence Control Instructions |
| |
| The sequence control instruction ensures that the instructions are executed in the same order in which they appear in the program. |
| |
| 2. Selection or Decision Control Instructions |
| |
| These types of instruction allow the computer to take a decision. |
| |
| 3. Case Control Instruction |
| |
| These types of instruction determine which instruction is to be executed next. |
| |
| 4. Repetition or Loop Control Instruction |
| |
| The loop control instruction helps computer to execute a group of statements repeatedly. |
| |
| |
|
| |
| |