I need some advice for getting the min and max from an array. I have a loop that reads the number and then calls a void function to do the calculations. My call by reference parameters/variables are not working right. When I output the results to the screen, it shows the max and min as the last number in the array. What could be the problem here? For some reason the number that is read from the array in the loop is not being passed or processed correctly. Thanks.