Hello eveyone;

Please does any one know how to return the location of the maximum and minimum elements in an array from a function to the main. I mean the locations not the values. Like if the maximum and minimum are the third and fifth elements respectively in the array(of course entered by the user) it returns the both locations to the main.

Thank you.