Finding the element of an array with the highest value
Posted on 2000-03-09
In other words, suppose you have declared a variable:
And suppose the elements of the array have been assigned some random numbers.
I am looking for code that can identify which element of the array has the highest value. That is, in math notation, I need to get a number j between 0 and 9 such that Array[j] is the highest value assumed by any element in the array.