Question DSA-STK-0001
EasyWhich data structure does a program use to manage function calls, including recursion?
- A.
Queue
- B.
Stack
- C.
Show answer and explanation
Answer: B
Each call pushes a frame (parameters, local variables, return address) onto the call stack, and returning pops it. Last call in, first out.