Why are transfer of control instructions neededSolutionTrans

Why are transfer of control instructions needed?

Solution

Transfer of control instruction is needed for various purposes in a programming language.

1. Suppose you want to execute statments conditionally. means if a condition is satisfied then a set of statement is to executed.and id the condition is not satisfied then a differet set of statement to be executed. In this case a control transfer instruction is required to transfer the control to the location where desired statements are written.

2. Suppose you want to execute a set of statement repeatedly, the control transfer instruction is needed at the end of the set of statement to transfer the control to begining of the set of statement .

3. Control transfer instruction is nedded to move out of a loop when desired solution is found,

Why are transfer of control instructions needed?SolutionTransfer of control instruction is needed for various purposes in a programming language. 1. Suppose you

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site