max

Returns the larger of two integers

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:Mathematical Computation

Syntax

  #include <stdlib.h>  
   
  int max  (  
     int   a,  
     int   b);
  

Parameters

a
(IN) Specifies the first integer.
b
(IN) Specifies the second integer.

Return Values

The max function returns the larger of the two integers.

See Also

min

Example

  #include <stdlib.h>  
   
  external int   ComputeValue1 (void);  
  external int   ComputeValue2 (void);  
   
  main()  
  {  
     int   maxValue;  
     value1 = ComputeValue1();  
     value2 = ComputeValue2();  
     maxValue = max (value1, value2);  
  }