English
Language : 

CC78K0S Datasheet, PDF (105/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 5 OPERATORS AND EXPRESSIONS
(2) Logical OR operator
Logical OR Operator
||
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 the result is int.
Table 5-8. Logical OR Operator
Value of
each bit in
right operand
Zero
Nonzero
Value of Each Bit in 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 U14872EJ1V0UM
105