单选题 以下程序的运行结果是( )。
main()
int a[5],k;
for(k=0;k<5;k++)
a[k]=10*k;
printf("%d", a[k-1]);
A.40 B.35
C.50 D.45

【正确答案】 A
【答案解析】