the quickest method finding the greatest number in array

Hello guys! i would like to learn the quickest method for finding the greatest number (interger) in an array,i know some methods but i want to learn the quickest way.

thanks for help~~!!
What do you mean by "quickest"? Quick to execute, quick to program, or what?

http://www.cplusplus.com/reference/algorithm/max_element/
definitely fastest to execute
also I didn't know that exist thank you keskiverto
thanks keskiverto i find what i was looking for !!
if very large, multi-thread might help.
If a true real time program, there may be a way to keep supplemental info that reduces the effort if needed.
Topic archived. No new replies allowed.