单选题
有以下程序:
#include <stdio.h>
main()
{ int a[]={2, 4, 6, 8, 10}, y=1, x, *p;
p=&a[1];
for(x=0; x<3; x++) y+=*(p+x);
printf("%d/n", y);
}
程序的输出结果是
A.17
B.18
C.19
D.20
A
B
C
D
【正确答案】
C
【答案解析】
提交答案
关闭