若有变量定义float x; int y;
则正确的switch语句是( )。
(A)
switch (x){
case 1 : printf("**\n");
case 2 : printf("** \n");
}
(B)
switch (x){
case 1~2 : printf("**\n");
case 3~4 : printf("** \n");
}
(C)
switch (1 * y){
case 1 : printf("**\n");
case 2 * y : printf("** \n");
}
(D)
switch (y){
case 1 : printf("**\n");
case 2 : printf("** \n");
}