单项选择题

有以下程序:
main()
int a[]=2,4,6,8,10),y=0,x,*P;
P=&a[1];
for(x=1;x<3;x++)y+=p[x];
printf("%d\n",y);
程序运行后的输出结果是______。

A.10
B.11
C.14
D.15