0

How to show an index of a number in an array after finding the largest number in c++

C++ Arrays

15th Nov 2017, 5:32 PM
Metsane Jacob
Metsane Jacob - avatar
3 Antworten
15th Nov 2017, 6:11 PM
Zeke Williams
Zeke Williams - avatar
+ 1
If you search for the largest number by iterating the elements you should know the index, can you give a little more detail as to what you are trying to do?
15th Nov 2017, 5:48 PM
Ipang
+ 1
I was looking to find the largest number in the array and then also report it's index number, I was iterating but my index number was always the last number of the loop. Also,Thanks for the help guys I really appreciate it.
15th Nov 2017, 6:35 PM
Metsane Jacob
Metsane Jacob - avatar