elibraryportal Logo

Recursion in C++

Recursion function calls itself directly or indirectly is called recursion and the corresponding function is called as recursive function.

Example:-C++ recursion example: Factorial Number

Output:

 Enter a number: 5
Factorial of entered number: 120
Next Topic