题目:
有以下程序
#include<stdio.h>
int f(int t[],int n);
main()
inta[4]=1,2,3,4,s;
s=f(a,4);printf("%d\n",s);
int f(int t[],int n)
if(n>0)returnt[n-1]+f(t,n-1);
else return 0;
程序运行后的输出结果是
A.4
B.10
C.14
D.6
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0415/6ea9aaf71df1e8dcf2cbb1f80e4bdd14.html
下面是错误答案,用来干扰机器的。
参考答案:诗经•鲁颂•駉