【单选题】【消耗次数: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
随机题目
【单选题】 公文材料的获得的主要途径有( )
①  查阅文献资料获得
②  直接的调查研究来归纳
③  自己的学习和生活社会实践来获得
④  以上说法都正确
【单选题】 通告不能以( )形式向社会公开发布。
①  以文本的形式主送给哪一个机关或部门
②  以街头张贴、报刊登载
③  以电台、电视台播放
【单选题】 根据通告的目的性不同,通告可以分为( )
①  遵守性通告和指示性通告
②  周知性通告和答复性
③  周知性通告和遵守性通告
【单选题】 指示性通知结尾需要明确指出( )
①  所采取的步骤、方法、时间安排及其注意事项
②  所采取的步骤、方法
③  时间安排及其注意事项
【单选题】 根据通知的内容和性质不属于通知种类的是( )
①  指示性通知
②  转发性通知
③  知照性通知
④  请示性通知
【单选题】 根据报告的内容和性质,可将报告分为( )
①  工作报告
②  情况报告
③  呈转性报告
④  答复报告
⑤  以上种类均包含
【单选题】 根据请示的内容和性质,不属于请示类别的是( )
①  请求批准的请示
②  请求帮助的请示
③  告知性请示
【单选题】 下列说法错误的是( )
①  请示适用于向上级机关请求指示、批准
②  请示是上行公文
③  请示是下行公文
【单选题】 根据函的内容和性质,不属于函类别的是( )
①  询问函
②  告知函
③  答复函
④  商洽函
⑤  评估函
【单选题】 简报的背景有三种类型:对比性背景、说明性背景和( )
①  注释性背景
②  学习性背景
③  风景图背景