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 - <b><= less than or equal to operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
<=                       Less Than or Equal to operator

 exp1 <= exp2            Test for exp1 less than or equal to exp2
 exp1, exp2              any expression of type int, float, char, enum, or
                         related types

    <= is a relational operator, yielding a value of 1 (TRUE) if exp1 is
    less than or equal to exp2, and 0 (FALSE) otherwise.

    For values of types int and float, ordering is well defined. For type
    char, it is based on the underlying ASCII code. For enum types, it is
    based on the underlying int value.  Type conversion is performed as
    necessary before comparing the expressions, using the usual
    arithmetic conversions.  Example:

           if (number < guess)
               ...
           do  {
               ...
           } while (tries <= 9);

See Also: Conversions < =

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