1.

In the program given below, point out the error, if any, in the for loop.#include <studio.h>int main(){ int i = 1; for (;;) { printf("%d n", i++); if (i > 10) break; } return 0;}

A. There should be a condition in the for loop.
B. The two semicolons should be dropped.
C. The for loop should be replaced by a while loop.
D. No error
Answer» E.


Discussion

No Comment Found

Related MCQs