14,661 views
3 3 votes

When a function is recursively called, all automatic variables :

  1. are initialized during each execution of the function
  2. are retained from the last execution
  3. are maintained in a stack
  4. are ignored

2 Answers

Best answer
5 5 votes
When a function is recursively called, all automatic variables are initialized during each execution of the function.
• selected by
1 1 vote
All the local variables that are bounf to executes in its activation records will need freash allocation each and every time.

So local variables inside the each activation records needs freash allocation.
Position:
Show:

Related questions

2 2 votes
3 3 answers
2.2k
2.2k views
Laahithyaa VS asked Sep 9, 2023
2,184 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2);else return 1...