max element function in c++ code example
Example: max_element c++
int arr[] = {1,4,2,10};
int n = 4; //size of array
cout<<*max_element(arr,arr+n);
// Output: 10
int arr[] = {1,4,2,10};
int n = 4; //size of array
cout<<*max_element(arr,arr+n);
// Output: 10