Multiple choice softskills creativity

Output ??? enum {false,true}; int main() { int i=1; do { printf("%d\n",i); i++; if(i < 15) continue; }while(false); return 0; }

  1. 12345

  2. 1234

  3. 123

  4. 1

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The do-while executes once with i=1, printing 1 and incrementing i to 2. The if(i<15) condition is true, so continue jumps back to loop condition. The while(false) condition fails, terminating the loop. Only 1 is printed. The continue statement affects loop control but the false condition guarantees single execution.