【单选题】【消耗次数:1】
下述程序的运行结果( )。 #includevoid main() { int n; for(n=1;nn++) { if(n%3==0)continue; printf(%d } }
12345678
124689
12457810
1234456
参考答案:
复制
纠错
相关题目
【单选题】 下述程序的运行结果( )。 #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 p,a=0; if(p=a!=0)printf(%d\n else printf(%d\n,p+2); }
①  1
②  2
③  3
④  5
【单选题】 下述程序的运行结果( )。 #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 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=4; while(n--) printf(%d\n,--n); }
①  2 0
②  1 0
③  2 1
④  3 0
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,1,3
②  4,5,6
③  5,0,3
④  3,4,7
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=4,b=3,c=5,t=0; if(aa=b;b=t; if(aa=c;c=t; printf(%d,%d,%d\n,a,b,c); }
①  5,0,3
②  4,5,6
③  5,1,3
④  3,4,6
【单选题】 下述程序的运行结果( )。 #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
【单选题】 下述程序的运行结果( )。 #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
随机题目
【判断题】 科学没有国界,科学家也不区分国界。
① 
② 
【判断题】 信息传播基础结构作为文化安全的压舱石,限定、决定着文化安全的命脉。
① 
② 
【判断题】 1784年,英国打败荷兰,与法兰西并列为两大殖民强国。
① 
② 
【判断题】 技术增强了人类改变世界的能力。
① 
② 
【判断题】 1947年10月2日,刘少奇对人民日报社、新华社华北总分社的记者进行了谈话。
① 
② 
【判断题】 新中国成立以后,鉴于我国是一个农业大国,农村工作极其重要的实际,党在全国农村组建宣传网,推动“宣传下乡”不断形成新的高潮。
① 
② 
【判断题】 在长期实践中,我们党的宣传工作之所以做得十分出色,实际上是在认真回答,为了谁、依靠谁、我是谁的重大课题。
① 
② 
【判断题】 根据本课程,道路自信是更基础、更广泛、更深厚的自信。
① 
② 
【多选题】 下列选项中,()属于道德失范现象。
①  拜金主义
②  享乐主义
③  爱国主义
④  极端个人主义
⑤  集体主义
【多选题】 社会主义核心价值体系包括()。
①  苏联的社会主义经验
②  马克思主义指导思想
③  以爱国主义为核心的民族精神
④  以改革创新为核心的时代精神
⑤  社会主义的荣辱观