执行以下程序段后,s的值为( )。int a[]={1

执行以下程序段后,s的值为(  )。

int a[]={1,2,3,4,5,6,7,8,9}, s=0,k;
 for(k=0;k<8;k+=2) s+=*(a+k);
答案
B

题目信息

题号:4499
题型:单选题
难度:普通