How does the print statement gets executed four times here?
Until the value of i remains greater than 0 the main() is called
recursively. Once it becomes 0 the if condition is violated. Anyone tell
me how the print statement is executed. When I run it, I get the output
"0000". Thanks
void main()
{
static int i=5;
if(--i)
{
main();
printf("%d",i);
}
}