How do I compare integers in an array to select the position in the array of the highest integer?

Viewed 3

I have an array defined as arrayS[10]; and am using a loop to feed in 10 temperature values;

and now I am stuck. How can I compare those values to see which i position in the array has the highest temperature value? I don't care what the temperature is, just which reading is the highest.

0 Answers
Related