求大神帮忙!
#include <stdio.h>
int sum(int score[])
{
int sum,i=0;
for(i=0;i<10;i++)
{
sum+=score[i];
}
printf("sum=%d",sum);
return 0;
}
int main()
{
int score[10]={67,98,75,63,82,79,81,91,66,84};
sum(score[10]);
return 0;
}
运行后没有输出,怎么回事?