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

2025

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

  1. A.

    Queue

  2. B.

    Stack

  3. C.

    Array

  4. 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.

Explore the full course: Cocubes Preparation