Young people now live a life-style. ______ their parents could hardly dream of.
A.which
B.why
C.when
D.where
第1题
有下列程序: include
voidmain()include<stdi0.h>
voidmain()
{intx=1,y=2,z=3;
if(x>y)
if(y<z)print{("%d",++z);
elseprintf("%d",++y);
printf(”%d\n”,x++);
}
程序的运行结果是()。
A.331
B.41
C.2
D.1
第3题
有下列程序: #include<stdi0.h> voidmain() {intx=1,y=2,z=3; if(x>y) if(y<z)print{("%d",++z); elseprintf("%d",++y); printf(”%d\n”,x++); } 程序的运行结果是()。
A.331
B.41
C.2
D.1
第4题
有下列程序:
#include<stdi0.h>
voidmain()
{
intx=8;
for(;x>0;x--)
{
if(x%3){printf("%d,",x--),continue;}
printf(”%d,”,--x);
}
}
程序的运行结果是()。
A.7,4,2
B.8,7,5,2
C.9,7,6,4
D.8,5,4,2
第5题
有下列程序: #include<stdi0.h> voidmain() { intx=1,y=0,a=0,b=0; switch(x) {case1: switch(y) { Case0:a++;break; case1:b++break; } case2:a++;b++;break; case3:a++;b++; } printf(”a=%d,b=%d\n”,a,b); }
程序的运行结果是()。
A.a=1,b=0
B.a=2,b=2
C.a=1,b=1
D.a=2,b=1
第6题
有下列程序:
#include<stdi0.h>
voidmain()
{
intx=1,y=0,a=0,b=0;
switch(x)
{case1:
switch(y)
{
Case0:a++;break;
case1:b++break;
}
case2:a++;b++;break;
case3:a++;b++;
}
printf(”a=%d,b=%d\n”,a,b);
}
程序的运行结果是()。
A.a=1,b=0
B.a=2,b=2
C.a=1,b=1
D.a=2,b=1
第7题
有下列程序: #include<stdi0.h> voidmain() { intx=8; for(;x>0;x--) { if(x%3){printf("%d,",x--),continue;} printf(”%d,”,--x); } } 程序的运行结果是()。
A.7,4,2
B.8,7,5,2
C.9,7,6,4
D.8,5,4,2
第8题
有下列程序:
#include<stdi0.h>
structord
{intx,y;}dt[2]={1,2,3,4};
voidmain()
{structord*p=dt;
printf("%d,",++P->x);printf("%d,",++P
->y);
}
程序的运行结果是().
A.1,2
B.2,3
C.3,4
D.4,1
第9题
有下列程序:
#include<stdi0.h>
structst
{intx,Y,date[2]={1,10,2,20};
voidmain()
{structst*p=date;
printf("%d,",p->y);printf("%d\n",(++p)
->x);
}
程序的运行结果是()。
A.10,1
B.20,1
C.10,2
D.20,2
第10题
有下列程序:
#include<stdi0.h>
intf(intx)
{
inty;
if(x==0‖x==1)return(3);
y=x*x-f(X-2);
returny;
}
voidmain()
{
intZ;
z=f(3);printf("%d\n",z);
}
程序的运行结果是()。
A.0
B.9
C.6
D.8
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!