What does it do?
Code:~x
Sorry google won't let me search for symbols
Printable View
What does it do?
Code:~x
Sorry google won't let me search for symbols
It's bitwise NOT operator
yeah, and it changes all bits of variable x from 0 to 1, and from 1 to 0.
E.g.
if x = 0b0010
after ~x is 0b1101