ok, cool so what this article says is that
All binary operators except for the assignment operators are evaluated from left to right; assignment operators are evaluated right to left.
This gives the answer for the question, so in both the cases
The compiler tries to evaluate the RHS of the '=' where it need i and j , and throws an error because it cannot find it.
Thanks