Name

compl operator — Bitwise complement operator

Synopsis

               unary-expr := ~ cast-expr | compl cast-expr
            

The bitwise complement operator requires an integer or enumeration operand. It performs the usual arithmetic promotion and toggles each bit of its operand, resulting in an integer.

The compl keyword is interchangeable with the ~ token.