I wrote: int main ()
{
Int the sum (int * p, int n);
Int a [10]={1, 2, 3, 4, 5, 6, 7, 8, 9, 5};
Int n=10;
The sum (a, n);
Printf (" \ n the array and for % d ", sum);
}
Int the sum (int * p, int n)
{
int i;
Int sum=0;
For (I=0; I & lt; n; I++ p++)
The sum +=* p;
return sum;
}
There is no error, but the results are not
CodePudding user response:
Solve the solvedCodePudding user response:
Help junction post + pointsCodePudding user response:
"1 + ceng pointsIf moderators feel I this is in the water, please direct messages me,