What will be the output of the following code?

1.6 What will be the output of the following code?
main() { int a,b,c;
a=1,b=10,c=2;
for( ;c<3;c++);
for( ;a<9,b>6;a++,b--)
printf(“%d”,c);
}
A) Infinite 2 2 2 ……
B) 3 3 3 3
C) 2 2 2 2
D) Infinite times 4 4 4 …

Leave a Reply