
16 Data Structures Using C
For initial value of x 5 5 and y 5 7, consider the following expression:
(x , 6) && (y . 6)
The operand x , 6 is true and the operand y . 6 is also true. Thus, the result of above given logical
expression is also true. However, the result of following expression is false because one of the operands
is false:
(x , 6) && (y . 7)
Similarly, consider the following expression:
(x , 6) || (y . 7)
The operand x , 6 is true whereas the operand y . 7 is false. Since these operands are connected by
logical OR, the result of this expression is true (Rule 2). However, the result of the following expression
becomes false because both ...