第1题
A.x=123.46
B.123.4567
C.x=123.4567
D.123.46
第2题
A.x=123.46
B.123.4567
C.x=123.4567
D.123.46
第3题
A.x=123.46
B.123.4567
C.x=123.4567
D.123.46
第4题
设有定义: float x=123.4567; ,则执行以下语句后的输出结果是 【 6 】 。
printf("%f\n",(int)(x*100+0.5)/100.0);
第5题
A.123412312
B.12341234123412341231231231212
C.1234+1234+1234
D.1234+123+12
第6题
设有定义:float x=123.4567;,则执行以下语句后的输出结果是[ ]。
printf("%f\n"(int)(x*100+0.5)/100.1;
第8题
若有以下定义,则正确的swish语句是______。 float x;int a,b;
A.switch(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n"); }
B.switch(x) {case 1,2:printf("*\n"); case 3:printf("**\n"); }
C.switch(a+b) {case 1:printf("\n"); case 1+2:printf("**\n"); }
D.switch(a+b); {case 1:printf("*\n"); case 2:printf("**\n"); }
第9题
若有定义 : 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");}
第10题
A.输出格式描述符的域宽不够,不能输出
B.输出为213.83
C.输出为213.82
D.输出为-213
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!