Operator Associativity


When operators of the same precedence are used together, the associativity of the operators is used to tell which operation should be performed first.

The && operator groups from left-to-right. So this:

if(1 && 1 && 0)
is the same thing as:
if((1 && 1) && 0)