Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

find maximum minimum element of an array

    vector<int>arr {1, 34 , 50, 4, 400};
    int maximumElement = *max_element(arr.begin(), arr.end());
    int minimumElement = *min_element(arr.begin(), arr.end());
 
PREVIOUS NEXT
Tagged: #find #maximum #minimum #element #array
ADD COMMENT
Topic
Name
5+5 =