___C___
参考,谢谢采纳!#include <stdio.h>
long long array_sum(long long *a,int curr,int len){
if(curr == len)return 0;
return a[curr] + array_sum(a,curr+1,len);
}
int main(){
long long a[] = {45,56,2,66,888};
printf("%ld",array_sum(a,0,5));
return 0;
}//手打未调试,请自行调试谢谢采纳!