How to find the minimum and maximum element of an Array using STL in C++? code example Example: maximum in vector *max_element(a.begin(), a.end());