ID : 633
Not Operator
Function
To obtain logical NOT of expressions.
Syntax
Not expression
Guaranteed entry
- expression
- Designate integer type data.
Return value
Return integer type data.
Description
The following table is a correspondence table of values of the expression expression and operation result (result) values.
expression | result |
---|---|
True | False |
False | True |
Not operator also performs bitwise inversion for the variable. Corresponding bits in the operation result (result) are set according to the next truth value table.
expression | result |
---|---|
0 | 1 |
1 | 0 |
Related Terms
Operators, & Operator, * Operator, + Operator, - Operator, / Operator, ^ Operator, = (Assignment) Operator, And Operator, Comparative Operators, Mod operator, Or Operator, Xor Operator, \ Operator, >> Operator, << Operator
Attention
-
Example
-
ID : 633