Run-Time Library Reference
__max
Returns the larger of two values.
type __max( type a, type b );
Parameters
Return Value
__max returns the larger of its arguments.
Remarks
The __max macro compares two values and returns the value of the larger one. The arguments can be of any numeric data type, signed or unsigned. Both arguments and the return value must be of the same data type.
Requirements
|
Routine |
Required header |
|---|---|
|
__max |
<stdlib.h> |
Example
For more information, see the example for __min.
.NET Framework Equivalent
See Also