in Programming edited by
332 views
2 votes
2 votes

Which of the following statements is/are true ?

#include <stdio.h>
int main()
{
int x=10, y=200%90, i;
for( i=1;i++<=10;);
if(x==y);
printf("x=%dy=%d\n",x,y );
return 0;
} 
  1. printf() is called infinite times
  2. program will produce output x=10,y=20;
  3. The program will not produce any output
  4. The program will produce some error
in Programming edited by
by
332 views

2 Comments

Why not answer b
0
0
The answer should be Option B as 'i' is declared in line 3.
2
2

1 Answer

2 votes
2 votes
Best answer
Correct Answer is Option b
selected by

1 comment

Sir, but it is printing output here

https://onlinegdb.com/BycBUvRGE

3
3
Answer:

Related questions