若有定义float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是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");}
若有定义float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是
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");}
相关考题:
若有定义 : 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");}
若有定义: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");}
若有定义: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");)
若有定义: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); {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");}
若有定义: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");}
1.若有定义:“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) {case1:printf(**n); case c:printf(**n);}D.switch (a+b) {case 1:printf("*n"); case 2+1:printf("**n");}
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的 switch 语句是A.switch(x) { case1 .0:printf("* n"); Case2.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”);}
若有定义: float x=1.5; int a=1,b=3,c=2; 则正确的switch语句是()。A.switch(a+b) { case 1: printf("*n"); case 2+1: printf("**n"); }B.switch((int)x); { case 1: printf("*n"); case 2: printf("**n"); }C.switch(x) { case 1.0: printf("*n"); case 2.0: printf("**n"); }D.switch(a+b) { case 1: printf("*n"); case c: printf("**n"); }