Answers for "c++ max value in array"

C++
8

c++ max of array

cout << " max element is: " << *max_element(array , array + n) << endl;
Posted by: Guest on May-22-2020
4

max element in array c++ stl

*max_element (first_index, last_index);
ex:- for an array arr of size n
*max_element(arr, arr + n);
Posted by: Guest on May-21-2020

Browse Popular Code Answers by Language