Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

__max

Returns the larger of two values.

type __max(
   type a,
   type b 
);

Parameters

type
Any numeric data type.
a, b
Values of any numeric type to be compared.

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 Compatibility
__max <stdlib.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

Example

See the example for __min.

See Also

Floating-Point Support Routines | __min | Run-Time Routines and .NET Framework Equivalents

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.