![]() |
![]() |
![]() |
![]() |
![]() |
|
You now know that, whenever the character ! is followed immediately
by the character =, the two characters together denote the
inequality operator.
The ! character also can appear alone, in which case it denotes the
not operator. The not operator is a unary operator that
converts true into false, and vice versa. Thus, the value of
!false is true and !true is false. Similarly,
the value of !(6 == 3) is true, meaning that it is true that
`6 is equal to 3' is false. Also, the value of
!(6 != 3) is false, meaning that it is false that `6 is
not equal to 3' is true.