English
Language : 

CC78K4 Datasheet, PDF (99/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 5 OPERATORS AND EXPRESSIONS
(2) Logical OR operators
Logical OR Operators
||
FUNCTION
The | | operator performs a logical OR operation on two operands and returns a “0” if both operands are zero.
Otherwise, a “1” is returned. The type of result is int.
Table 5-8. Logical OR Operation
Value of
each bit in
right operand
Zero
Nonzero
Value of Left Operand
Zero
Nonzero
0
1
1
1
SYNTAX
E1 || E2
NOTE
This operator always evaluates its operands from left to right. If the value of the left operand is nonzero, the right
operand is not evaluated.
User’s Manual U15556EJ1V0UM
99