+= has lower priority than (+= and = have the same priority, in fact) == thus
i += 1 == 2 means
i += ( 1 == 2), which is i += 0 -> i == 1

Cheers !

hyjial

Reply via email to