Which of the following statements are CORRECT?
It will be D.
option 2 is wrong because it is not necessary to have automatic garbage collection to implement recursion.
option 4 is wrong because it says that both are required to implement recursion, which is wrong. Either of them will suffice.
Heap is having structure as CBT ..but for Recursion we need LIFO structure ...which only stack can provide ..
Is this right sir ??
1) In Static allocation of memory , we cannot implement recursion. As in recursion we cannot determine at first how many time function will be called
2)Automatic garbage collection done in JAVA (JVM done this) and LISP. But recursion we can implement in C too.So, Automatic Garbage Collection is not essential for Recursion
3) True. Same reason as 1)
4)Stack implement recursion, but heap is not necessary for recursion
Can someone help me understand examples on...