Q.

Which of these is not true about recursion?

A. it’s easier to code some real-world problems using recursion than non-recursive equivalent
B. recursive functions are easy to debug
C. recursive calls take up a lot of memory
D. programs using recursion take longer time than their non-recursive equivalent
Answer» B. recursive functions are easy to debug
Explanation: recursive functions may be hard to debug as the logic behind recursion may be hard to follow.
3.3k
0
Do you find this helpful?
23

Discussion

No comments yet