单项选择题

若a和b均是整型变量并已正确赋值,正确的switch语句是( )。

A. switch(a+b);{……}
B. switch(a+b*3.0){……}
C. switch a{……}
D. switch(a%b){……}