![]() |
Bitwise complement operator ('~') |
Previous | Unary operators |
In the expression
~ exprthe expr operand must be of integral type. The result is the bitwise complement of the operand after any required integral promotions. Each 0 bit in the operand is set to 1, and each 1 bit in the operand is set to 0.