5.6.9.8.1 Not Operator

The Not operator performs a bitwise negation on its operand.

 not-operator-expression = "not" expression 

Runtime semantics:

§ The operation to produce the result is determined based on the values of the operand, as follows:

Operand Value

Result

Integral value

Bitwise Not of operand

Null

Null

 

§ If a bitwise Not of the operand is indicated, the result is produced by generating a corresponding result bit for each identically positioned bit in the implementation format of the operand according to the following table:

Operand Bit

Result Bit

0

1

1

0