Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>== equality operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
==                       Equality operator

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

    == is a relational operator, yielding a value of either 1 (TRUE), if
    the expressions have the same value; or 0 (FALSE) if the expressions
    do not have the same value.  Type conversion is performed as
    necessary before comparing the expressions, according to the usual
    arithmetic conversions.  Here is an example:

           if (number == guess)
               ...
           do  {
               ...
           } while (ans == 'y');

See Also: Conversions != <= >=

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