← Quiz: Recursion and Stack Frames: all 10 questions
Quiz: Recursion and Stack Frames · Question 2 of 10
What does a stack frame NOT normally contain?
What does a stack frame NOT normally contain?
- A.The function's local variables
- B.The function's parameters
- C.The return address
- D.Memory allocated with malloc
Answer & explanation
Correct answer: Memory allocated with malloc
malloc memory lives on the heap; the frame may hold only the pointer to it.
Can you get the rest right without peeking?
Take the timed Quiz: Recursion and Stack Frames quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →