In recursion, which data structure is used by the system implicitly?

2025

In recursion, which data structure is used by the system implicitly?

Answer: B. StackDuring 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…

  1. A.

    Queue

  2. B.

    Stack

  3. C.

    Array

  4. D.

    LinkedList

Attempted by 1308 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.

Explore the full course: Coding For Placement

Loading lesson…