find the max element in array in c++ code example Example: c++ max of array Click to copycout << " max element is: " << *max_element(array , array + n) << endl;