Tuesday, 13 August 2013

Can someone please explain this C output?

Can someone please explain this C output?

The code :
int main()
{
static int i=5;
if(--i) {
main();
printf("%d",i);
}
return 0;
}
The output can be seen (and executed) here : http://ideone.com/4kYuPr
It comes out to be 0000 and I can't understand how. Please explain if you
have time :)

No comments:

Post a Comment