A.-1,0
B.0,0
C.-1,-1
D.1,1
第1题
while(getchar( )!=\n); . . . } 以下叙述中正确的是( )。
A.此while语句将无限循环
B.getchar( )不可以出现在while语句的条件表达式中
C.当执行此while语句时,只有按回车键程序才能继续执行
D.当执行此while语句时,按任意键程序就能继续执行
第4题
#include <stdio.h>
#include <string.h>
typedef struct{ char name[9];char sex; float score[2]; } STU;
STU f(STU a)
{ STU b={"Zhao",'m',85.0,90.0}; int i;
strcpy(a.name,b.name);
a.sex=b.sex;
for(i=0;i<2;i++) a.score[i]=b.score[i];
return a;
}
main()
{ STU c={"Qian",'f',95.0,92.0},d;
d=f(c); printf("%s,%c,%2.0f,%2.0f\n",d.name,d.sex,d.score[0],d.score[1]);
}
程序的运行结果是
A)Qian,f,95,92
B)Qian,m,85,90
C)Zhao,m,85,90
D)Zhao,f,95,92
第5题
A.xy,aaaacc
B.aaaacc,xy
C.bee,aabcc
D.aabcc,bcc
第6题
A.xy,aaaacc
B.aaaacc,xy
C.bee,aabcc
D.aabcc,bcc
第7题
A.beijing
B.china
C.welcome
D.tiananmen
第8题
A.0
B.1
C.2
D.3
第9题
include<stdio.h>
main( )
{ char a[5][10]={"one","tw0","three","four","five"};
int i,j;
char t: 、
for(i=0;i<4;i++)
for(j=i+1;j<5;j++)
if(a[i][O]>a[j][0])
{t=a[i][O];a[i][O]=a[j][O];a[j][O]=t;)
puts(a[1]);
}
程序运行后的输出结果是( )。
A.fwo
B.fix
C.two
D.owo
第10题
include<stdio.h>
main( )
{char ch[3][5]={"AAAA","BBB","CC"};
printf("%s\n",ch[l]);
}
程序运行后的输出结果是( )。
A.AAA
B.CC
C.BBBCC
D.BBB
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!