THE EXPRESSION 2<X<3 IS LEGAL. HOWEVER, IT DOES NOT MEAN(2 &L...

2. The expression 2<x<3 is legal. However, it does not mean(2 < x) && (x < 3)as many would wish. It means (2 < x) < 3. Since (2 < x) is a Boolean expression, its value is either true or false and is thus converted to either 0 or 1, either of which is less than 3. So, 2 < x < 3 is always true. The result is true regardless of the value of x.