-Function call itself again and again is known as the recursion.
-We can create a loop type structure with the help of the recursion.
-recursion require a stack memory for execution.
Infinite loop by recursion:
-Here when execution starts then it will go in main() function then we will again call main() function and this process continue run.
How recursion work in C++:
#include < iostream>
using namespace std;
int func(int i)
cout<< i<< endl;
-In this program, we call a function func() with starting value of i is 5 then call function again and again with decrease value of i and if value of i will become 0 then return.