In C programming, what is tail recursion?

  • A recursion that involves a loop
  • A recursion with a base case at the beginning
  • A recursion with a base case at the end
  • A recursion with no base case
Tail recursion in C is a type of recursion where the base case is located at the end of the recursive function. This means that the recursive call is the last operation in the function, making it more efficient and easier for the compiler to optimize.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *