首页 > 计算机等级考试
题目内容 (请给出正确答案)
[主观题]

若有定义float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是A.swimh(x) {case 1.0: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");}

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“若有定义float x=1.5;int a=1,b=3,c=…”相关的问题
第1题
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swish语句是()。请帮

点击查看答案
第2题
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是()。A.switch(x)B.switch((int)x);

若有定义: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");)

点击查看答案
第3题
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是()。A.switch(x) {case 1.0:printf("

若有定义: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");)

点击查看答案
第4题
若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是______。A.switch (x) {case 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"); 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"));}

点击查看答案
第5题
若有定义: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) {case1:printf(**\n);} casec:printf(**\n);}

点击查看答案
第6题
若有定义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");}

点击查看答案
第7题
若有以下变量定义:float x; int a,b;则正确的switch语句是()。

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");}

点击查看答案
第8题
若有以下定义:char a; int b; float c; double d; 则表达式a*b+d-c值的类型为______。A.floatB.in

若有以下定义:char a; int b; float c; double d; 则表达式a*b+d-c值的类型为______。

A.float

B.int

C.char

D.double

点击查看答案
第9题
试题14若有定义语句:int a=10; double b=3.14; , 则表达式‘A’+a +b值的类型是()

A.char

B.int

C.double

D.float

点击查看答案
第10题
若有以下类型说明语句: char w;int x;float y, z; 则表达式w*x+z-y的结果为______类型。

A.float

B.char

C.int

D.double

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改