i=x<y<z
=> i= 10<20<z
=> i= true(1) < 5
=> i= true(1)
=> i=1
This is true If Compiler evaluates from Left to Right if same perority operator are there.