Question discussion

Which data structure is used by a program to keep track of function calls and to support recursion?

1707Medium DSSSB TGT Computer Science 0 replies 1 views
0

Which data structure is used by a program to keep track of function calls and to support recursion?

  • AQueue
  • BStack
  • CBinary tree
  • DGraph
Correct answer: B

Explanation

Each call pushes an activation record onto the call stack, and the return pops it (last in, first out).

Discussion 0

Nobody has replied yet. Start the discussion!