create a infinite recursion program (just a simple, unique and describe in each line)
void func(int n){
func(n+1);
}
There should be a base that should return for sum value of n.
But in this case there is no return statement.
This function calls itself no matter the value of n.
So, This is a infinite recursive function.
Example:
func(1) makes a call func(2)
func(2) makes a call func(3)
func(3) makes a call func(4)
func(4) makes a call func(5)
...
...
and so on
create a infinite recursion program (just a simple, unique and describe in each line)