Int main ()
{
Int I=5;
Do
{
The switch (I % 2)
{
Case: 0 - I; break;
Case 1: (I) -; continue;
}
i--; i--;
Printf (" % d ", I);
} while (i> 0);
return 0;
}
Operation result is 1, why the second cycle to continue go out? Don't continue to perform output - 3???
CodePudding user response:
Continue is such, across the back of the program, from the next cycle starts againCodePudding user response:
For the first time after the continue jump straight to the while, the words I still have not used this usage, I do {} while (0); Is to ensure that the macro definition statements as a whole,CodePudding user response:
The continue here refers to jump out of the while loop, so will not continue to run the following program, directly go to the next time the while loopCodePudding user response:
After the continue to judge the conditions of the while, so I=1 ~ exit cycleCodePudding user response: