Answers for "return the index where maximum element in a vector"

C++
0

return the index where maximum element in a vector

// my linkedin : https://www.linkedin.com/in/vaalarivan-prasanna-3a07bb203/
cout << distance(vec.begin(), max_element(vec.begin(), vec.end()));
Posted by: Guest on April-29-2021

Code answers related to "return the index where maximum element in a vector"

Browse Popular Code Answers by Language