题目内容:
有以下程序 main()
{chark;intI;
for(i=1;i<3;i++)
{scanf(“%c”,&k);
switch(k)
{case‘0’:printf(“another\n”);
case‘1’:printf(“number\n”);
}
}
}
程序运行时,从键盘输入:01<回车>,程序执行后的输出结果是( ) A.anothernumber
B.number number
C.anotheranother
D.numberanother
参考答案:
答案解析: