填空题
【函数1.3说明】
递归函数sum(int a[],int n)的返回值是数组a[]的前n个元素之和。
【函数1.3】
int sum(int a[],int n)
{if
1
return a[n-1]+sum(a,n-1);
else
2
;
}
提交答案
关闭