What is tail recursion optimization?
-
A
Replacing loops with recursive calls
-
B
Converting a recursive call in tail position into an iterative loop to avoid stack growth
-
C
Optimizing the last line of a function
-
D
Eliminating unused variables at the end of a function