He clearly identified X = 1 and Y = 2; Now with expression
X && Y == 1
The expression evaluates to Y == 1 (Priority rule, False is also output)
X! = 0 (True)
Now && is a logical and operator, so it evaluates to True only if both parts of the expression express True !!!
source share