• 2022-06-09
    若有以下定义: float x;int a,b;则正确的switch 语句是
    A: switch(x){case 1:a++;case 2:b++;}
    B: switch(x){case 1,2:a++;case 2:b++;}
    C: switch(a+b){case 1,2:a++;case 2:b++;}
    D: switch(a+b){case 1:a++;case 2:b++;}