Programming with Passion

Make the best out of everything.

Wednesday, 15 February 2017

Guess the Output

Try Guessing The Output of the following.

#include<iostream.h>
#include<conio.h>
static int i=5;
void main()
{      clrscr();
if(--i)main();
cout<<i;
}

what do you think it will display.
Can't Deduce? Go run in your compiler then and get ready to be amazed.
Happy Coding. 

No comments:

Post a Comment