Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
__max

__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

Show:
© 2015 Microsoft