下列程序的输出结果是
#include
void main( )
char * str="12123434";
int x1=0,x2=0,x3=0,x4=0,i;
for(i=0;str[i]!=’/0’;i++)
switch(str[i])
case’1’:x4++;
case’2’:x3++;
case’3’:x2++;
case’4’:x1++;
cout < < x1 < < "," < < x2 < < "," < < x3 < < "," < < x4;
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 15:23:15
免费下载:《单选题》Word试卷
下列程序的输出结果是
#include
void main( )
char * str="12123434";
int x1=0,x2=0,x3=0,x4=0,i;
for(i=0;str[i]!=’/0’;i++)
switch(str[i])
case’1’:x4++;
case’2’:x3++;
case’3’:x2++;
case’4’:x1++;
cout < < x1 < < "," < < x2 < < "," < < x3 < < "," < < x4;
A.8,6,4,1
B.8,6,3,2
C.8,8,4,1
D.8,6,4,2
本题关键词:输出结果,出院病案排列顺序,竣工结算程序,结果,序列关系,空间序列,肝糖输出,输出浓度,程序,结果均;