Search
 
SCRIPT & CODE EXAMPLE
 

CPP

max_element c++

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

// Output: 10
Comment

PREVIOUS NEXT
Code Example
Cpp :: sleep c++ 
Cpp :: string iterator in c++ 
Cpp :: initialize an array in c++ 
Cpp :: cpp insert overload operator 
Cpp :: Story of c++ 
Cpp :: what does the modularity mean in c++ 
Cpp :: convert integer to string c++ 
Cpp :: how to add an element to std::map 
Cpp :: c++ cast char to string 
Cpp :: c++ vector move element to front 
Cpp :: combine two vectors c++ 
Cpp :: check if a string is palindrome cpp 
Cpp :: convert decimal to binary in c++ 
Cpp :: vector length c++ 
Cpp :: checking if a string has only letters cpp 
Cpp :: c++ power 
Cpp :: rotate array cpp 
Cpp :: swap elements array c++ 
Cpp :: long to string cpp 
Cpp :: how to print a text in c++ 
Cpp :: c++ get line 
Cpp :: What is the "--" operator in C/C++? 
Cpp :: binary search c++ 
Cpp :: classes constructor in c++ 
Cpp :: how can we create 4 digit random number in c++ 
Cpp :: use of alphanumeric function c++, check if alphabet or digit from string 
Cpp :: c++ Least prime factor of numbers till n 
Cpp :: c++ syntax 
Cpp :: log base 2 in c++ 
Cpp :: sum array c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =