A-A+
以下程序运行时 从键盘输入:01 程序执行后的输出结果是()#includeint main
问题详情
以下程序运行时,从键盘输入:01<回车>,程序执行后的输出结果是()
#include
int main()
{
char k;
int i;
for(i=1;i<3;i++)
{
scanf("%c",&k);
switch(k)
{
case "0": printf("anothern");
case "1": printf("numbern");
}
}
return 0;
}
A、another
number
B、another
number
another
C、another
number
number
D、number
number
参考答案
参考答案:C