Bitwise NOT

Syntax

~x

Explanation

Flips each bit in x. Arithmetically equivilent to -x - 1

Truth Table

A

~A

0

1

1

0

Last updated