【单选题】【消耗次数:1】
下述程序的运行结果( )。 #includevoid main() { int p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
1
2
3
5
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=1,b=2,c=3; if(c=a)printf(%d\n else printf(%d\n }
①  1
②  3
③  5
④  6
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
①  12345678
②  124689
③  12457810
④  1234456
【简答题】 #includestdio.hint main(){int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;p=a;printf(%d\n,*p);p++;printf(%d\n,*p);}程序输出结果为[填空1]和[填空2]。
【简答题】 int a[10]={0,1,2,3,4,5,6,7,8,9};int *p;int i;p=a;printf(%d\n,*p++);printf(%d\n,*++p);程序输出结果为[填空1]和[填空2]。
【单选题】 以下程序运行的输出结果是。main(){ int p=30;printf(%d\n,(p/320?p/10:p%3)); }
①  0
②  1
③  2
④  3
【单选题】 下述程序的运行结果( )。 #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
【单选题】 下述程序的运行结果( )。 #includevoid main() { char ch; int i=0; for(ch=achzch++) { printf(%c ,ch); if(i%10==0) printf(\n } printf(\n }
①  a b c d e f g h i j k l m n o p q r s t u v w x y z
②  a b c d e f g h i j k l m n o p q r s t u v w x y z
③  a b c d e f g h i j k l m n o p q r s t u v w x y z
④  a b c d e f g h i j k l m n o p q r s t u v w x y z
【单选题】 下述程序的运行结果( )。 #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
随机题目
【单选题】 建设项目的总概算中的工程监理费属于( )。
①  单位工程概算
②  预备费
③  建设单位管理费
④  间接费
【单选题】 定额规定的资源消耗数量标准中不包括( )内容。
①  人工
②  材料
③  资金
④  管理费
【单选题】 按我国现行规定,公路工程各项目费用中的间接费取费基数为( )。
①  直接费
②  直接工程费
③  其他工程费
④  人工费
【单选题】 辅助生产现场经费费率按不同企业等级计,它的计算基数为( )。
①  直接费
②  直接工程费
③  其他工程费
④  人工费
【单选题】 投标标价(招标控制价)=分部分项工程费+措施项目费+其他项目费+规费+税金。( )
①  正确
②  错误
【单选题】 基本定额:是指在合理的条件下,为生产单位数量的半成品,成品和中间产品所规定的各种资源消耗量的标准。( )
①  正确
②  错误
【单选题】 单相三孔插座的接线要求:左孔接火,右孔接地,上孔接零。( )
①  正确
②  错误
【单选题】 ( )是安装电器和敷设支路管线的依据。
①  电气施工平面图
②  原理图
③  接线图
④  系统图
【单选题】 建筑电气施工图主要由电气系统图、图纸目录()图组成。
①  电气接线图
②  电气平面图
③  电气原理图
【单选题】 等电位联结支线采用铜导线时,其最小允许截面为2.5mm2。( )
①  正确
②  错误