English
Language : 

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