Control instruction in a programming language determines the flow of control in a program. In C language there are four types of control instruction, which are as follows:
The sequence control instruction determines the instruction executed in the same order as they are written in the program.
The decision and case control instruction determines the computer as to which instruction is to be followed next.
The loop control instruction helps computer to repeat some instruction(s) execution.
- Sequence Control Instruction.
- Selection or Decision Control Instruction.
- Repetition or Loop Control Instruction.
- Case Control Instruction.
The sequence control instruction determines the instruction executed in the same order as they are written in the program.
The decision and case control instruction determines the computer as to which instruction is to be followed next.
The loop control instruction helps computer to repeat some instruction(s) execution.
No comments:
Post a Comment
Please give your valuable comments or queries if you fell its helpful or if you like the contents of the site. Thanks...