What is Recursions?

Repetitive calling of the same function is called recursion. Recursions are those functions which call itself again and again. Recursive functions can easily become infinite loops.

An example program to find out the factorial of any number is the one of the best example of recursion:

Out put of the program