The Bitwise NOT
Bitwise NOT which is also called the bitwise complement, the unary NOT operator, ~, inverts all of the bits of its operand. For instance, the number 42, this has the following bit pattern;
00101010 becomes
11010101
after the NOT operator is applied.