This is when in a recursive function, the recursive call is the last statement that is executed by the function. Recursion i.e.
unsigned int f( unsigned int a ) {
if ( a == 0 ) {
return a;
}
return f( a - 1 ); // tail recursion
}This is when in a recursive function, the recursive call is the last statement that is executed by the function. Recursion i.e.
unsigned int f( unsigned int a ) {
if ( a == 0 ) {
return a;
}
return f( a - 1 ); // tail recursion
}