|
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
|
▷ |