Your code jumps to the middle of the loop. Since then, he ignores cases of a switch statement, so it performs n++, n++, checks the condition, cycle, etc. This helps if you are thinking about casehow to label and switchhow goto:
int n=0, i=2;
if (1 == 0)
goto label0;
else if (1 == 1)
goto label1;
else if (1 == 2)
goto label2;
label0:
do {
puts("loop");
label1:
n++;
label2:
n++;
} while (--i > 0);
, label1 (puts), , .