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>min() return the smaller of two arguments (macro)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 min()                   Return the Smaller of Two Arguments (Macro)

 #include   <stdlib.h>

 type   min(x,y);

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

    Returns:    The smaller of the two arguments.

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

    This example prints the smaller of two values.

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

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


See Also: max()

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