bitwise not code example
Example 1: bitwise operator
bitwise complement of N = ~N (represented in 2's complement form)
2'complement of ~N= -(~(~N)+1) = -(N+1)
Example 2: bitwise not
Copy CodeNOT 10110101 (decimal 181)
-------- =
01001010 (decimal 74)