Header File
stdlib.h
Category
C++ Prototyped Routines
Prototype
(type) max(a, b);
template <class T> T max( T t1, T t2 ); // C++ only
Description
Returns the larger of two values.
The C macro and the C++ template function compare two values and return the larger of the two. Both arguments and the routine declaration must be of the same type.
Return Value
max returns the larger of two values.
Portability
POSIX |
Win32 |
ANSI C |
ANSI C++ |
|
+ |
|
|
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|