For (int I=0;; ) {; }; Do {int I=0} while (); While (1) {int I=0}; Out of the loop body I is a definition; Further the if (1) {int I=0; } the curly braces is invalid; Switch beyond constant-like case (untested) in variables defined within certain range out of the range is invalid; Even {int I=0}; The curly braces is invalid,
CodePudding user response:
This is called a block scope