Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>max() return the larger of two arguments (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 max()                   Return the Larger of Two Arguments (Macro)

 #include   <stdlib.h>

 type   max(x,y);

    max() returns the larger of two numeric type values.  The type can be
    any signed or unsigned numeric.  Both arguments and the function
    declaration for the call to max() must have the same type.

    Returns:    The larger of the two arguments.

   -------------------------------- Example ---------------------------------

    This example prints the larger of two values.

           #include  <stdlib.h>
           #include  <stdio.h>         /* for printf */

           main()
           {
               printf("Of %d and %d, %d is larger.\n", x, y, (int)max(x, y));
           }


See Also: min()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson