Home > Back-end >  [for] C language function to calculate the maximum, one-dimensional array requirements in the main p
[for] C language function to calculate the maximum, one-dimensional array requirements in the main p

Time:09-18

Bald, I don't think for a long time to come out, can not find people for help, help, send a post o, I write nothing, operation is to size for maximum is meng  hope warrior comments help

CodePudding user response:

The maximum value of a loop, is ok

CodePudding user response:

 
Int Max (int arr [], int n)
{
Int I, Max=arr [0].
for (i=0; i{
If (Max & lt; Arr [I])
Max=arr [I];
}
The return of Max;
}
  • Related