C Etymology
Boolean NOT Operator
Form
boolean-not-operator
→
!
Remarks
The bitwise NOT operator is not supported for floating point operands.
For each bit position, the result is 0 iff the operand is 1.
For each bit position, the result is 1 iff the operand is 0.
Boolean NOT
Operand
Result
0
1
1
0
Reference Links
Bitwise NOT Expression
<Bitwise-and-expression>
Bitwise AND Operator
<Bitwise-and-operator>
Bitwise OR Operator
<Bitwise-or-operator>
Bitwise Exclusive Or Operator
<Bitwise-xor-operator>