Calling main() function
This program illustrate the concept of calling main() function.
- A main() function is a complex user defined function.
- This program will call main() function recusrsively.
- We have used static keyword because a static int variable remains in memory even while the program is running. In other words it retain the value of variable between multiple function calls.
- A normal variable is destroyed when a function call where the variable is declared.
static int x=3;