Question
Given in the following program:
main()
{
int x=49;
for (;x;)
x--;
printf("%d\n",x);
}
What will be the output of the program?
For all non-zero values of x the for will execute. x is decremented from 49 to 0. Hence 0 is printed in the screen.