单项选择题

以下不构成无限循环的语句或者语句组是______。

A.n=0;
B.n=0; do{++n;}while(n<=0); while(1){n++}
C.n=10;
D.for(n=0,i=1;;i++)n+=i; while(n);{n--;)
<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序: int fun(int x[],int n) {static int sum=0,I; for(i=0;i<n;i++)sum+=x[i]; return sum; } main() {int a[]={1,2,3,4,5},b[]={6,7,8,9},s=0; s=fun(a,5)+fun(b,4);printf( %d n ,s); } 程序执行后的输出结果是______。
A.45
B.50
C.60
D.55
单项选择题
以下选项中,不能作为合法常量的是______。
A.1.234e04
B.1.234e0.4
C.1.234e+4
D.1.234e0
相关试题
  • 设有定义:FILE*fw;,请将以下打开文件的...
  • 已知字符A的ASCⅡ代码值为65,以下程序运...
  • 以下程序中,fun函数的功能是求3行4列二...
  • 以下程序运行后的输出结果是______。...
  • 以下程序运行后的输出结果是______。...