In recursion, which data structure is used by the system implicitly?
2025
In recursion, which data structure is used by the system implicitly?
- A.
Queue
- B.
Stack
- C.
Array
- D.
LinkedList
Attempted by 752 students.
Show answer & explanation
Correct answer: B
During recursion, the system implicitly uses a stack. The stack keeps track of the function calls and returns, ensuring that each function call is paired with its return.