void main( float sco[5],av; int i; printf("\ninput 5 scores:\n"); for(i=0;i<5;i++)scanf("%f,&sco[i]); av-aver(sco); /*调用函数,实参为一数组名*/ printf("average score is %5.2fn",av); getch(); [程序演示]void main() { float sco[5],av; int i; printf("\ninput 5 scores:\n"); for(i=0;i<5;i++) scanf("%f",&sco[i]); av=aver(sco); /*调用函数,实参为一数组名*/ printf("average score is %5.2f\n",av); getch(); } [程序演示]