Basically there are two types of recursion in programming.
The normal recursion and the tail recursion.
What is special about tail recursion is that the recursive statement is called at the end of the code.
Let’s identify the difference between normal recursion and the tail recursion.
Check out the tail recursion.
First don’t really think about the way this works. First identify the difference between normal recursion and the tail recursion.
If you can identify, the time that the calling of the function changes the recursion type.
In Tail Recursion the recursive call is the last thing to happen in the each recursion.
But in normal recursion, multiplication happens last.
OK. Now go ahead workout the behavior of the two code segments.