English, asked by bokkisharanya, 10 months ago

what would be the maximum depth of the call stack at any given time created by the call f(5)​

Answers

Answered by girishkumari1985
1

Answer:

please provide the diagram

Explanation:

bsjamma

Answered by sriramvsynergy
2

The call f(5) creates a call stack with a maximum depth of 5.

  • It is possible that the call f(10) would create a deeper call stack.
  • This is because the call f(5) calls another function which calls another function which calls the function f(10).
  • This creates a chain of function calls which leads to a deeper call stack.
  • This is because the call f(5) will be executed 5 times, each time returning a new call stack.

This is one way to think about a call f(5), but it’s not the only way.

  • The call f(5) could also be executed 5 times, but instead of returning a new call stack, the call f(5) would return the same call stack each time.
Similar questions