Question:

Which of the following instruction brings the control back to the main program from subroutine?

Show Hint

Subroutine instructions: \[ \boxed{ \text{CALL} \rightarrow \text{Jump to subroutine} } \] \[ \boxed{ \text{RET} \rightarrow \text{Return to main program} } \]
Updated On: Jul 14, 2026
  • RET
  • HLT
  • JMP
  • CALL
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Recall the function of RET instruction. The RET (Return) instruction retrieves the return address from the stack.

Step 2:
Determine its purpose. After executing a subroutine, RET transfers program control back to the instruction immediately following the CALL instruction. Hence, \[ \boxed{\text{RET}} \] is the correct answer. Therefore, \[ \boxed{(A)} \] is the correct answer.
Was this answer helpful?
0
0