【单选题】【消耗次数:1】
下列程序执行后的输出结果是() void func1(a) { switch(a) { case 1:printf(good); case 2:printf(nice); default:printf(end); } } main( ) { int i=2; func1(i); printf(\n); }
nice
end
good
niceend
参考答案:
复制
纠错
相关题目
【单选题】 以下程序段的运行结果是()。 int s=15; switch(s/4) {default: printf(Over ) ; case 1: printf(One ) ; break; case 2: printf(Two ) ; }
①  Two
②  Over Two
③  Over One
④  One
【单选题】 有以下程序,程序运行以后的输出结果是() #include stdio.h main( ) { int a[ ]={2,3,5,4},i; for(i=0;i switch(i%2) { case 0:switch(a[i]%2) {case 0:a[i]++;break; case 1:a[i]--; }break; case 1:a[i]=0; } for(i=0;i printf(\n); }
①  3 3 4 4
②  2 0 5 0
③  3 0 4 0
④  0 3 0 4
【单选题】 以下程序段的运行结果是()。ints=15;switch(s/4){default:printf("Over");case1:printf("One");break;case2:printf("Two");}
①  Two
②  OverTwo
③  OverOne
④  One
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 下面程序的输出结果是()。 #include int num=10; func( ) {int num=4; return ++num; } void main( ) { printf(%d\n, func( ) ) ; }
①  4
②  5
③  10
④  11
【单选题】 以下程序的运行结果是()。voidmain(){intn=9;switch(n--){default:printf("%d",n++);case8:case7:printf("%d",n);break;case6:printf("%d",n++);case5:printf("%d",n);}}
①  8
②  7
③  89
④  87
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*} printf(\n}
【简答题】 以下程序的运行结果是[填空1]。#include stdio.hvoid main(){int i,j;for (i=4;ii--){printf(*for (j=1;jj++)printf(*printf(\n}}
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=2,b=1
②  a=1,b=2
③  a=0,b=1
④  a=1,b=0
随机题目
【单选题】 下列不属于企业获得关于顾客是否满意的信息的来源的是( )。
①  投诉与建议系统
②  跟踪调查
③  顾客满意度调查
④  佯装购物者
【单选题】 在多种竞争方式中,竞争最激烈的是( )。
①  愿望竞争者
②  一般竞争者
③  产品形式竞争者
④  品牌竞争者
【多选题】 市场营销环境的特征包括( )。
①  客观性
②  差异性
③  整体性
④  相关性
⑤  动态性
【判断题】 原始资料的来源主要有消费者、促销员、卖场仓库的保管人员等。
①  正确
②  错误
【多选题】 下列各项中,属于可控因素的有( )。
①  产品
②  价格
③  促销
④  分销
⑤  技术
【单选题】 广告公司属于市场营销渠道企业中的( )。
①  代理中间商
②  经销中间商
③  营销服务机构
④  营销咨询机构
【单选题】 下列各项中能够调节生产与消费矛盾的是( )。
①  中间商
②  实体分配机构
③  营销服务机构
④  财务中介机构
【单选题】 报社、杂志社、广播电台、电视台等属于( )。
①  金融公众
②  媒介公众
③  政府公众
④  社团公众
【单选题】 供应商对企业的影响不包括( )。
①  供货的稳定性
②  供货的周期性
③  供货的价格变动
④  供货的质量水平
【单选题】 ( )是指为其他某种目的而收集的资料。
①  一手资料
②  二手资料
③  三手资料
④  四手资料