Which of the following data structures is used in the implementation of…
2025
Which of the following data structures is used in the implementation of recursion ?
- A.
Queue
- B.
Stack
- C.
Linked List
- D.
Array
Attempted by 317 students.
Show answer & explanation
Correct answer: B
Recursion relies on the call stack to manage function calls and return addresses. Each recursive call pushes a new frame onto the stack, allowing the program to track execution state and return correctly after base cases are reached.