Exam-style question
Try this first
Explain how a stack frame supports a call from one subroutine to another. Your answer should refer to the return address, parameters and local variables.
Answer and explanation
Concise answer
When a subroutine is called, a stack frame is created for that call.
Why this is correct
A complete answer links each required item to its purpose: the return address enables correct resumption, parameters provide data for the call, and local variables hold values belonging to that particular execution of the subroutine.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
