题目内容:
有以下程序:fun(int a[],int m,int n){int i;for(i=m;i<n;i++)a[i+1]=a[i]+3;return a[i+1];}void main(){int i,a[6]={2,4,6,8,10,12};fun(a,2,5);for(i=0;i<6;i++)printf("%d",a[i]);}程序运行后输出的结果是()。A.24691315 B.24691215 C.249121518 D.249121415
参考答案:
有以下程序:fun(int a[],int m,int n){int i;for(i=m;i<n;i++)a[i+1]=a[i]+3;return a[i+1];}void main(){int i,a[6]={2,4,6,8,10,12};fun(a,2,5);for(i=0;i<6;i++)printf("%d",a[i]);}程序运行后输出的结果是()。A.24691315 B.24691215 C.249121518 D.249121415