An array of integers looks like this: int array[50];
But since you're passing it to a function it will look like this: int *array;
A function looks like this: return_type name(formal_parameters)
So in the end, you function will look like:
1 2
int function(int *array, int size)
{}
Now inside the function you have to use a for() loop to find the maximum and minimum elements.
1 2 3 4
for (int i=0; i<size; ++i)
{
/* figure it out */
}
Finally, return the quotient: return min/max;
Questions?
in the comment you put in the function /* figure it out*/ i have to find the max and the min value?...right?..but how should i do that...?...what's the way to do that?...Please?