The max macro compares two values and returns the larger one. The data type can be any numeric data type, signed or unsigned. The data type of the arguments and the return value is the same.
max(
value1, // low-order word
value2 // high-order word
);
The return value is the greater of the two specified values.
The max macro is defined as follows:
#define max(a, b) (((a) > (b)) ? (a) : (b))
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in windef.h.