To be clear, it works because X[Y] is a synonym for * (X + Y)
Since addition is commutative, * (X + Y) can be rewritten as * (Y + X) which is a synonym for... Y[X]
similarly, the 'approaches' pseudo-operator:
while (i --> 0) { /* do something */ }
A little bit of C trivia:
In C, arrays can be indexed like so:
a[10] which is very common.
However, the lesser known form (which really does work!) is:
10[a] which means the same as the above.