全部题库 / C语言 / 试题详情
单选题 C语言
2008-03-21

有以下程序  
main( )  
{ char k; int I;  
for(i=1;i<3;i++)  
{ scanf(“%c”,&k);  
switch(k)  
{ case ‘0’: printf(“another\n”);  
case ‘1’: printf(“number\n”);  
}  
}  
}  
程序运行时,从键盘输入:01<回车>,程序执行后的输出结果是(  )

A.another number 
B.number  number  
C.another another  
D.number  another

参考答案

C

答案解析

暂无解析

你可能感兴趣的试题