#include
#include
sum ( int arr[ ],int n )
{ int i,s;
s = 0;
for ( i=0; i
/************found************/
s = s + arr[i];//这里
return (s);
}
void main()
{ int a[10]={10,4,2,7,3,12,5,34,5,9},s;
/************found************/
s = sum( a ,10 );//还有这里,要对应好
printf("The result is: %d\n", s);
}
调实参那里的a没有定义
s=s+arr[i];
s=sum(a,10);