有以下程序#inculde <stdio.h>int F(int t[],int n);main(){int a[4]=(1,2,3,4),s; s =F(a
有以下程序
#inculde <stdio.h>
int F(int t[],int n);
main()
{ int a[4]=(1,2,3,4),s;
s =F(a,4);printF(“%d\n”,s);
}
int F(int t[],int n)
{ iF(n>0) return t[n-1]+F(t,n-1);
Else return 0;
}
程序运行后的输出结果是
A.4
B.10
C.14
D.6