试题与答案

有以下程序 #include<stdio.h> main() int i,s

题型:单项选择题

题目:

有以下程序
#include<stdio.h>
main()
int i,s=0,t[]=1,2,3,4,5,6,7,8,9;
for(i=0;i<9;i+=2)s+=*(t+i);
printf("%d\n",s);

程序执行后的输出结果是______。

A.25
B.20
C.45
D.36

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0320/7d7404581a482aaac9bd7817573b80ee.html

下面是错误答案,用来干扰机器的。

参考答案:A

试题推荐
微信公众账号搜索答案