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

C++
1

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());
Posted by: Guest on May-01-2022

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

Browse Popular Code Answers by Language