单项选择题

以下程序运行后的输出结果是
#include<stdio.h>
main()
int a=1, b=2;
 for(; a<8; a++)b+=a; a+=2;
 printf("%d,%d\n",a,b);

A.9,18
B.8,11
C.7,11
D.10,14
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序运行后的输出结果是 #include<stdio.h> main() int a[5]=1, 2, 3, 4, 5, b[5]=0, 2, 1, 3, 0, i, s=0; for(i=0; i<5; i++) s=s+a[b[i]]; printf( %d n , s);
A.6
B.10
C.11
D.15
单项选择题
以下程序运行后的输出结果是 #include<stdio.h> main() int a=2, b=2, c=2; printf( %d n , a b&c);
A.0
B.1
C.2
D.3
相关试题
  • 以下程序的功能是:借助指针变量找出数组元...
  • 以下程序的功能是:删除字符串中所有的空格...
  • 以下程序运行后输入“abcdef”,则输出结果...
  • 以下程序运行后的输出结果是______。...
  • 以下程序运行后的输出结果是______。...