

InterviewSolution
Saved Bookmarks
1. |
What is tail recursion?(a) A recursive function that has two base cases(b) A function where the recursive functions leads to an infinite loop(c) A recursive function where the function doesn’t return anything and just prints the values(d) A function where the recursive call is the last thing executed by the functionI got this question in homework.The question is from Recursion topic in section Argument Passing, Global vs Local Variables, Shallow copy vs Deep copy and Recursion of Python |
Answer» Correct OPTION is (d) A FUNCTION where the RECURSIVE call is the LAST thing executed by the function |
|