DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+3 =
Submit