max element in array c++ stl

C++
*max_element (first_index, last_index);
ex:- for an array arr of size n
*max_element(arr, arr + n);
Source

Also in C++: