Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

what is the short cut way to find the max and min element in an array in c++

cout<< *max_element(arr.begin(), arr.end());

cout<< *min_element(arr.begin(), arr.end());
 
PREVIOUS NEXT
Tagged: #short #cut #find #max #min #element #array
ADD COMMENT
Topic
Name
6+3 =