What is the output of the following code?
void stat(void);
main()
{
int i;
for(i=1;i=3;i++)
stat();
}
void stat(void)
{
static int x=0;
x=x+1;
printf("x=%d\n",x);
}

Posted on by