title | ms.custom | ms.date | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | apiname | apilocation | apitype | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
__max | Microsoft Docs |
11/04/2016 |
|
article |
|
|
DLLExport |
|
|
|
05c936f6-0e22-45d6-a58d-4bc102e9dae2 |
12 |
corob-msft |
corob |
ghogen |
Returns the larger of two values.
type __max(
type a,
type b
);
type
Any numeric data type.
a, b
Values of any numeric type to be compared.
__max
returns the larger of its arguments.
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.
Routine | Required header |
---|---|
__max |
<stdlib.h> |
For more information, see the example for __min.