Shouldn\'t the value of i be 0? Since x
#include int main(void) { int x = 10,y=20,z=5,i; i=x
In your code, due to the LTR associativity of the relational operators,
i=x<y<z;
evaluates to
i=(x<y)<z;
which is
i=(10<20)<z;
i= 1 < 5;
which is TRUE (1). That 1 gets stored in i. That's it.
1
i