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. Exampleunsigned bitmask; bitmask = ~0xF107; // bitmask becomes 0xFFFF0EF8 (32 bits). See Alsobitand, bitor, expression, not, xor, Chapter 3, <ciso646> |