问题描述:
[单选]
下面程序输出的结果是【】main(){int a = 1; int b = 2; switch(a) { case 1: printf("这是外 switch 的部分\n"); switch(b) { case 2: printf("这是内 switch 的部分\n"); }}}
A.提示错误
B.这是外 switch 的部分
C.这是内 switch 的部分
D.这是外 switch 的部分这是内 switch 的部分
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:以下程序运行后的输出结果是【 】。main(){char str【】【9】={"hello","student","computer"};printf("%s\n",str【1】);}
下一篇:有以下程序,输出结果为【】 #include <stdio.h>main(){int x=1,y=0,c=0,d=0;switch(x){case 1( )switch(y){case 0( )c++;break;case 1( )d++;break;}case 2( )c++;d++;break;case 3( )c++;d++;} printf("c=%d,d=%d\n",c,d);}
- 我要回答: 网友(216.73.216.96)
- 热门题目: 1.在使用输液港中下列哪些情况需 2.输液港导管夹闭综合症临床表现 3.患者出院拔除无损伤前需用()
