What is the output of this C code?
int main()
{
printf("before continue ");
continue;
printf("after continue\n");
}
Answer: D
Correct answer: Compile time error
continue must appear inside a loop. In a function body with no loop around it there is no next iteration to jump to, so the compiler rejects the program - neither printf ever runs.
Please log in or register to report this question.