CodePudding user response:
Do you want to define the aver into aver (float *)Calculate average in aver, outside call need not cycle
CodePudding user response:
# include & lt; stdio.h>
Float aver (int [b])
{
Int I, sum=0;
Float business;
for(i=0; i<10; I++)
The sum a + b=[I];
Business=sum/10;
Return business.
}
Void main ()
{
int i;
Float business;
90,80,88,78,94,56,50,70,65,89 int a [10]={};
Business=aver (a);
Printf (" the business is: % 2 f ", business);
}
CodePudding user response:
The definition of the function (or implementation) can't write in the main (),