1.

Which of the following statement is correct about the program given below?


#include <studio.h>
int main ()
{
int i = 0;
for(i = 0; i <= 127; printf ("%d", i++))
;
printf (" n");
return 0;
}

A. The program would go in an infinite loop.
B. The program would output 0 1 2 ..... 126 127.
C. The program would not produce any output.
D. The program would report an error: Cannot use printf() in for loop.
Answer» C. The program would not produce any output.


Discussion

No Comment Found

Related MCQs