单项选择题
以下程序运行后的输出结果是
#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
点击查看答案&解析
相关试题
以下程序运行后的输出结果是 #include<s...
以下程序运行后的输出结果是 #include<s...
有以下程序: #include<stdio.h> mai...
以下程序运行后的输出结果是 #include<s...
数据流程图(DFD图)是