|
CC78K0S Datasheet, PDF (87/520 Pages) NEC – C Compiler Ver.1.30 or Later Language | |||
|
◁ |
CHAPTER 5 OPERATORS AND EXPRESSIONS
(3) Unary arithmetic operators (+ â ~ !)
Unary Operators
+â~!
FUNCTIONS
The + (unary plus) operator performs positive integral promotion on its operand.
The â (unary minus) operator performs negative integral promotion on its operand.
The ~ (tilde) operator is a bitwise oneâs complement operator which inverts all the bits in a byte of its operand.
The ! NOT or logical negation operator returns 0 if its operand is 0 and 1 if it is not 0. In other words, the
operator changes each 0 to 1 and 1 to 0.
SYNTAX
+ operand
â operand
~ operand
! operand
Userâs Manual U14872EJ1V0UM
87
|
▷ |