问题描述:
[单选]
下面程序输出的结果是【】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.187)
- 热门题目: 1.工前会召开地点选择() 2.工前会参与人员不包括() 3.根据工作包分级,将工前会组织
