Answers for "c++ max element how to get value"

C++
1

max_element c++

int arr[] = {1,4,2,10};
int n = 4; //size of array
cout<<*max_element(arr,arr+n);

// Output: 10
Posted by: Guest on February-17-2021
0

integer max value c++

int i=INT_MAX;
Posted by: Guest on February-13-2022

Browse Popular Code Answers by Language