Correct Answer - Option 1 : Stack
Concept:
A subroutine is a subprogram or code that can be executed anywhere in a program. It performs specific tasks such as save the file, display of time, etc.
Explanation:
A subroutine can be called many times during the execution of the program. Calling a subroutine involves :
- passing arguments
- save return address
- transfer control to the callee
- transfer control back to the caller
- return results
When a subroutine is called, the address of the instruction following the CALL instructions stored in /on the stack. The return address associated with a subroutine is stored in either a processor register or in memory called stack. The program counter then fetches the address of the next instruction from the stack.