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>&& logical and operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
&&                       Logical AND operator

 exp1 && exp2            Logical AND
 exp1, exp2              any integral expression

    The && operator performs a logical AND on exp1 and exp2; the
    resulting value is 1 (TRUE) if both exp1 and exp2 are TRUE; and FALSE
    (0) otherwise.  The operator evaluates exp1 first; if exp1 is 0
    (FALSE), then exp2 is not evaluated, since the entire expression is
    already false.  Example:

           if ((i == j) && (myfunc(k) == 0))
                       /* if i isn't equal to j, myfunc() isn't called */

See Also: || ! &

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