-->
当前位置:首页 > Eng > 正文内容

单选题:以下程序的执行结果是 ____

Luz1年前 (2022-12-05)Eng372
以下程序的执行结果是()

int main()
{ char x='B';
switch(x)
{ case ‘A’: printf(“It is A.”);
case ‘B’: printf(“It is B.”);
case ‘C’: printf(“It is C.”);
default: printf(“other.”);
}
return 0;
}






A.It is B.


B.It is B.
It is C.
other.






C.It is A.
It is B.
It is C.
other.


D.It is B.It is C.other.









answer:D

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。