min

Syntax

int min(value1,value2)

This macro returns the lesser of the values specified by the value1 and value2 parameters, respectively.

Parameter Description  

value1 Specifies the first of two values.  
value2 Specifies the second of two values.  

Return Value

The return value specifies value1 or value2, whichever is less.

Comments

The values identified by the value1 and value2 parameters can be any ordered type.