#include<stdio.h>
int main()
{
int x = 10, y = 100 % 90, i;
for(i = 1; i <= 10; i++);
if(x != y);
printf("x = %d y = %d\n", x, y);
return 0;
}
1. The printf() function is called 10 times.
2. The program will produce the output x = 10 y = 10.
3. The ; after the if (x != y) would NOT produce an error.
4. The program will not produce any output.
5. The printf() function is called infinite times.
Ans: Following statements are true for the above program.
2. The program will produce the output x = 10 y = 10.
3. The ; after the if (x != y) would NOT produce an error.