How does the bitwise complement (~) operator work?

Posted by bala on Stack Overflow See other posts from Stack Overflow or by bala
Published on 2009-04-26T18:29:46Z Indexed on 2010/04/07 2:23 UTC
Read the original article Hit count: 430

Why is it that ~2 is -3?

© Stack Overflow or respective owner

Related posts about operators

Related posts about bitwise-operators