The expression i != j < k
is the same with i != (j < k)
.
First, j < k
is evaluated and the result is a bool
(either true
or false
).
Second, i != true
or i != false
is evaluated. Since i
is an int
, the bool
will be converted to int
, which means i != 1
or i != 0
is evaluated.