A.Looking back on the "good old days" makes modern man's life all the more stressful.
B.Now that less work is physical and more is mental, it is relatively difficult to remove oneself —physically and mentally —from it.
C.The sophisticated communication technology is keeping busy men and women "within call" no matter whether they are at home or on vacation.
D.Both B and C.
第1题
以下程序的输出结果是()。
main
{ char*s="12134211";
int v[4]=(0,0,0,0),k,i;
for(k=0;s[k];k++)
{ switch(s[k])
{ case'1':i=0;
case'2':i=1;
case'3':i=2;
case'4':i=3;}
}
v[i]++:
}
for(k=0;k<4;k++)printf("%d",v[k]);
A.4 2 1 1
B.0 0 0 8
C.4 6 7 8
D.8 8 8 8
第2题
下列程序的输出结果是______。 main() { char *s="12134211"; int v[4]={0,0,0,0},k,i; for(k=0;s[k];k++) { switch(s[k]) { case '1':i=0; case '2':i=1; case '3':i=2; case '4':i=3; } vii]++; } for(k=O;k<4;k++) printf("%d ",v[k]); }
A.4211
B.0008
C.4678
D.8888
第3题
以下程序运行后的输出结果是。main(){ char s[]="GEFDCBA"; int p=6;While(s[p]!=’D’){ printf("%c",p);p=p-1; }}
第4题
以下程序的输出结果是【 】。
include <iostream>
using namespace std;
int main()
{
char S[ ]="abcdef";
s[3]='\0';
cout<<s<<end1;
return 0;
}
第5题
以下程序的输出结果是______。 main() { union { int i[2]; long j; char m[4]; }r,*s=&r; s->i[0]=0x409; s->i[1]=0x407; printf("%d\n",s->m[0]); }
A.9
B.49
C.7
D.47
第6题
以下程序的输出结果是 【 11 】。
#include <stdio.h>
main()
{ char *ch[4]={"red',"green","blue"};
int i=0;
while(ch[i] )
{ putchar(ch[i][0]); i++;)
}
第7题
以下程序的输出结果是【 】。
include<stdio.h>
main()
{ struct stru
{ int a;
float b;
char d[4];
};
printf("%d\n",sizeof(struct stru));
}
第8题
以下程序运行后,输出结果是______。
#include<stdio.h>
ss(char*s)
{ char*p=s;
while(*P) ++p;
return(P-s);
}
main()
{ char*a="abded";
int i;
i=ss(a);
printf("%d\n",i);
}
第9题
以下程序的输出结果是_______。 #include<string.h> main() {char*a="abcdefghi";int k; fun(a) ;puts(a) ; } fun(char *s) { int x,y; char c; for(x=0,y=strlen(s)-1; x<y; x++,y--) { c=s[y]; s[y]=s[x];s[x]=c;} }
A.ihgfedcba
B.abcdefghi
C.abcdedcba
D.ihgfefghi
第10题
以下程序的输出结果是______。
main()
{char s[]="abcdef";
s[3]='\0';
printf("%s\n",s);
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!