若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是()。
A.switch(x)
B.switch((int)x); {case 1.0:printf("*\n"); {case 1:printf("*\n"); case 2.0:printf("**\n");} case 2:printf("**\n");}
C.switch(a+B)
D.switch(a+B){case 1;printf("*\n"); {case 1:printf("*\n"); case 2+1:printf("**\n");} case c:printf("**\n");)
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是______。
A.switch (x) {case 1.0: printf("*\n"); case 2.0: printf("**\n");}
B.switch ((int)x); {case 1: printf("*\n"); case2: printf("**\n");}
C.switch (a+b) {case 1:printf("*\n"); case 2+1: printf("**\n");}
D.switch (a+b)) {case 1: pfintf("*\n")}; case c: printf("**\n"));}
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是()。
A.switch(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n");}
B.switch((int)x); {case 1:printf("*\n"); case 2:printf("**\n");}
C.switch(a+B){case 1:printf("*\n"); case 2+1:printf("**\n");}
D.switch(a+B){case 1:printf("*\n"); case c:printf("**\n");)
A.swimh(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n");}
B.switch((int)x); {case 1:printf("*\n"); case 2:printf("**\n");}
C.switch(a+
D. {case 1:pfintf("*\n"); case 2+1:pfintf("**\n");}switch(a-I-{case 1:pfintf("*\n"); case c:printf("**\n");}
A.switch(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n");}
B.switch((int)x); {case 1:printf("*\n"); case 2:printf("**\n");}
C.switch(a+b) {case 1:printf("*\n"); case 2+1:printf("**\n");}
D.switch(a+b) {case1:printf(**\n);} casec:printf(**\n);}
A.switch(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n");}
B.switch((int)x); {case1:printf("*\n"); case 2:printf("**\n");}
C.switch(a+b) {case 1:printf("*\n"); case 2+1:printf("**\n");}
D.switch(a+b) {case 1:printf("*\n"); case c:printf("**\n");}
A.switch(a+b){ case 1:printf("*/n");case 2*a:printf("* */n");}
B.switch(x){ case 1.0:printf("*/n");case 2.0:printf("* */n");}
C.switch(x){ case 1,2:printf("*/n");case 3:printf("* */n");}
D.switch(a+b){ case 1:printf("*/n");case 1+2:printf("* */n");}
若有以下定义:char a; int b; float c; double d; 则表达式a*b+d-c值的类型为______。
A.float
B.int
C.char
D.double
A.float
B.char
C.int
D.double