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 not operator (unary)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
!                        Logical NOT operator (unary)

 !exp                    logical NOT
 exp                     any integral type (int, char, enum, etc.)

    The unary operator ! performs a logical inversion on exp.  If exp has
    a value of 0 (FALSE), then !exp has a value of 1 (TRUE).  If exp has
    a non-zero value (TRUE), then !exp has a value of 0 (FALSE).  Here
    are two examples:

           j = 0x0F01;
           i = !j;              /* i == 0x0000 */

           j = 0x0000;
           i = !j;              /* i == 0x0001 */

See Also: ~ && ||

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