
In this tutorial, we will study what is recursion in c programming, the structure of the recursion function, the advantages and disadvantages of recursion in c, the types of recursion, and the factorial of a number using recursion.
Recursion is a process in which the function calls itself. Recursion is used to solve a problem by dividing it into small parts. Such functions which call themselves are called recursive functions.
Direct recursion is a recursion in which a function calls itself.
In this, one function calls another function which in return calls it itself.
Originally posted on alimammiya.hashnode.dev
Credit on - Use My Notes