Question
What is tail recursion?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Recursion in which the recursive call is the final operation
Explanation:
Tail-recursive calls can be optimized into iteration by the compiler.
This avoids growing the call stack for each recursive step.
Leave a Reply