I hope this below information will give an idea about how chain '==' operator works:
Since C language does not support chaining comparison like a==b==c; each equal to operator (==) operates on two operands only. Then how expression a==b==c evaluates?
According to operators associativity equal to operator (==) operates from left to right, that means associativity of equal operator (==) is left to right.
Expression a==b==c is actually (a==b) ==c, see how expression (a==b) ==c evaluates?
•(a==b) will be compared first and return either 1 (true) or 0 (false).
•Then value of variable c will be compared with the result of (a==b).
So we won't use chain '==' operator for multiple variable comparison.