-
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;
}
-
- The program would go in an infinite loop.
- The program would output 0 1 2 ..... 126 127.
- The program would not produce any output.
- The program would report an error: Cannot use printf() in for loop.
Correct Option: B
The program would output 0 1 2 ..... 126 127.