【单选题】【消耗次数: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
随机题目
【单选题】 在水准测量中,利用视线高法进行计算时,视线高等于后视读数加上仪器高。
①  正确
②  错误
【单选题】 普通微倾式水准仪主要组成部分有( )。
①  三角架
②  基座
【单选题】 当观测者的眼睛在测绘仪器的目镜处晃动时,若发现十字丝与目标影像相对移动,这种现象称为视差。
①  正确
②  错误
【单选题】 水准测量中常要用到尺垫,尺垫的作用是防止点被移动。
①  正确
②  错误
【单选题】 水准器的分划值俞小,其灵敏度俞高,用来整平仪器的精度也俞高。
①  正确
②  错误
【单选题】 水准器内壁2mm弧长所对应的圆心角,称水准器的分划值。
①  正确
②  错误
【单选题】 某工程在进行水准测量时,按规范计算出的高差闭合差的容许误差为24mm,而以观测结果计算出的实际高差闭合差为-0.025m。说明该水准测量的外业观测成果合格。
①  正确
②  错误
【单选题】 一闭合水准路线共测量了四段,各段的观测高差分别为:+4.721、-1.032、-3.753、+0.096。则高差闭合差为+0.032。
①  正确
②  错误
【单选题】 水准测量在一个测站上,读得后视点A的读数为1.460,读得前视点B的读数为1.786。则后视点比前视点高。
①  正确
②  错误
【单选题】 因为在自动安平水准仪上没有水准管,所以不需要进行视准轴不水平的检验与校正。
①  正确
②  错误