- . C, Java # , "-OO".
, OO, .
, "jump", , O (1) , "if". ( ) , "" , "break".
Here's how it was done in C and saved for C ++.
As for the value in the switch, it should be a numeric value, but it does not have to be a constant. In your case, it i++evaluates to 0, but increases me to 1. This is a well-defined behavior, and there are no problems with sequence points.
source
share