Multiple choice technology programming languages

What will be the output of the following: void main() { int i; for(i=1;i<=4;i++) { printf("%d",i); continue; } }

  1. 1

  2. 1234

  3. 123

  4. 234

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

The for loop runs from 1 to 4. continue skips remaining code in the current iteration, but since it's at the end of the loop body, it has no effect. Each iteration prints its number: 1, 2, 3, 4 → output: 1234.