C Programming :: Control Instructions
-
Point out the error, if any in the for loop.
#include
int main() { int i=1; for(;;) { printf("%d\n", i++); if(i>10) break; } return 0; } -
Point out the error, if any in the program.
#include
-
Point out the error, if any in the program.
#include
-
Point out the error, if any in the while loop.
#include
int main() { int i=1; while() { printf("%d\n", i++); if(i>10) break; } return 0; } -
Which of the following errors would be reported by the compiler on compiling the program given below?
#include
-
Point out the error, if any in the program.
#include
-
Point out the error, if any in the program.
#include
int main() { int i = 1; switch(i) { case 1: printf("Case1"); break; case 1*2+4: printf("Case2"); break; } return 0; } -
Point out the error, if any in the while loop.
#include
-
Point out the error, if any in the program.
#include