switch(i){ case 0: int j = 9; //これはエラーになる printf("%d", j); break; case 1: { int k = 5; //これは実行可能 printf("%d", k); } break; default: break; }