Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

max_element c++

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

// Output: 10
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+3 =