English
Language : 

CC78K0S Datasheet, PDF (104/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 5 OPERATORS AND EXPRESSIONS
(1) Logical AND operator
Logical AND Operator
&&
FUNCTION
The && operator performs a logical AND operation on two operands and returns a “1” if both operands have
nonzero values; otherwise a “0” is returned. The type of the result is int.
Table 5-7. Logical AND Operator
Value of
right operand
Zero
Nonzero
Value of Left Operand
Zero
Nonzero
0
0
0
1
SYNTAX
E1 && E2
NOTE
This operator always evaluates its operands from left to right. If the value of the left operand is “0”, the right
operand is not evaluated.
104
User’s Manual U14872EJ1V0UM