English
Language : 

CC78K0S Datasheet, PDF (77/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 5 OPERATORS AND EXPRESSIONS
Table 5-1 shows the evaluation precedence of operators used in C.
Table 5-1. Evaluation Precedence of Operators
Type of Expression
Postfix
Unary
Cast
Multiplicative
Additive
Bitwise shift
Relational
Equality
Bitwise AND
Bitwise XOR
Bitwise OR
Logical AND
Logical OR
Conditional
Assignment
Comma
Operator
[ ] ( ) . – > ++ – –
++ – – & * + – ~ ! sizeof
(type)
*/%
+–
<< >>
< > <= >=
== !=
&
^
|
&&
||
?:
= *= /= %= += –=
<<= >>= &= ^= | =
,
Linkage Priority
→
Highest
←
←
→
→
→
→
→
→
→
→
→
→
←
←
→
Lowest
Operations in the same line contain the same priority.
The arrow (→ or ←) in the Linkage column denotes that when an expression contains two or more operators of the
same precedence, the operations are carried out in the direction of the arrow “→” (from left to right) or “←” (from right
to left).
User’s Manual U14872EJ1V0UM
77