c++ find largest index of largest element in vector code example
Example: largest element in vector c++
// Find the max element
cout << "\nMax Element = "
<< *max_element(a.begin(), a.end());
// Find the max element
cout << "\nMax Element = "
<< *max_element(a.begin(), a.end());