Recursion is memory-intensive because:
A. Recursive functions tend to declare many local variables.
B. Previous function calls are still open when the function calls itself and the activation records of these previous calls still occupy space on the call stack.
C. Many copies of the function code are created.
D. It requires large data values.
Answer:B
Recursion is memory-intensive because:
A. Recursive functions tend to declare many local variables. B. Previous function calls are still open when the function calls itself and the activation records of these previous calls still occupy space on the call stack. C. Many copies of the function code are created. D. It requires large data values.