单项选择题
有以下程序: main() { int i=0,s=0; for(;;) { if(i==3||i==5)continue; if(i==6)break; i++; s+=i; }; printf("%d\n",s); } 程序运行后的输出结果是 ______。
A.10
B.13
C.21
D.程序进入死循环
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序: # include<stdio.h> main() { char*p,*q; p=(char *)malloc(sizeof(char)* 20);q=p; scanf( %s %s ,p,q);printf( %s %s n ,p,q); } 若从键盘输入;abc def<回车>,则输出结果是 ______。
A.def def
B.abc def
C.abe d
D.d d
点击查看答案&解析
单项选择题
以下程序段的输出结果是 ______。 int a=1234; printf( % 2d n ,a);
A.12
B.34
C.1234
D.提示出错、无结果
点击查看答案&解析
相关试题
有以下程序,其中函数的功能是将多个字符串...
有以下程序: main() { int x[]=...
有以下程序: main() { int a=1,...
设有以下定义: int a=0; double b...
有以下程序: main() { char s[]...