let us understand control instruction:-
Control instruction enables us to specify the order in which other instruction are executed by the compiler.
Control instruction also known as "flow of control" in program.
Types of control instruction:-
1)Sequence control instruction
2)Selection or Decision control instruction
3)Repetition or Loop control instruction
4)Case control instruction
the sequence control instruction ensures that the instruction executed in the same order in which they appear in the program.
Decision and Case instruction take the decision which instruction is executed next after the previous executed instruction.
to executed group of instruction repeatedly Loop instruction are used, ex- for, while, do-while etc.
Comments
Post a Comment