Bitwise NOT operator (unary)
 
 ~exp                    bitwise NOT
 exp                     any integral type (int, char, enum, etc)
 
    The unary operator ~ performs a bit-by-bit complement on exp,
    converting each 0 bit to a 1 and each 1 bit to a 0.  The result is of
    the same type as exp.  For example:
 
           j = 0x0F71;
           i = ~j;              /* i == 0xF08E */

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster