#include int main() { // prints 3, 10 times int y = 0; while (int x = 3) { if ( ++y > 10 ) break; std::cout << x++ << std::endl; } // prints 0 to 9 y = 0; for ( ; ; ) { std::cout << y << std::endl; if ( ++y >= 10 ) break; } switch(y) { case 0: // This is ill-formed, 6.7, you can not transfer into a block and bypass initialization // int x = 0; int x; x = 0; break; case 1: break; } return 0; }