题目内容
(请给出正确答案)
[单选题]
下列程序段的输出结果是int a=1234;float b=123.456;double c=12345.54321;printf("%2d,%2.1f,%2.1f",a,b,c);
A.无输出
B.12,123.5,12345.5
C.1234,123.5,12345.5
D.1234,123.4,12345.5
查看答案
如果结果不匹配,请 联系老师 获取答案
A.无输出
B.12,123.5,12345.5
C.1234,123.5,12345.5
D.1234,123.4,12345.5
执行下列程序段后输出的结果是() int x,y,z=1; for(x=1,y=-1;x<y;x++,y--)z++; printf("%d\n",z);
A.1
B.2
C.5
D.6
下面程序段的输出结果是______。
#include<stdio.h>
int b=1:
int func(int *a)
{*a+=b;return(*a);)
main()
{int a=2,res=1;
res+=func(&a);
prf("%d%d\n",a,res);}
程序段的输出结果是【 】。
int x=3,y=2,z=1;
count<<(x/y&~z);
A.12345
B.1234
C.15
D.123
下述程序段的输出结果是 () int x=10; int y=x + +; 8printf("%d,'%d,(x+ +,y),y + +);
A.11,10
B.11,11
C.10,10
D.10,11
A.16,32,20
B.20,20,20
C.16,16,20
D.32,16,20
若有定义:int a,b,C;以下程序段的输出结果是()。
a=11;b=3;C=0;
printf(”%d\n”,c=(a/b,a%B.);
A.2
B.0
C.3
D.1
A.*#**#**#
B.**#**#*
C.*#**#**
D.**#**
A.3,2,0
B.3,2,-1
C.4,3,-1
D.5,-2,-5
A.1
B.2
C.5
D.7
下列程序执行时,从键盘上依次输入123和234,则程序的输出结果是()。
a=InputBox("请输入第一个整数")
b=InputBox("请输入第二个整数")
Print a+b