Abuse dark corners of array indexing
i[array]
desugars into *(i+array)
, and since +
is commutative for pointer+integer
too, it is equivalent to *(array+i)
and therefore array[i]
.
It's not very common to see an array indexing expression (whatever)[x]
where whatever
requires wrapping in parens and x
doesn't, but when you see one, you can swap the two positions and write x[whatever]
to save two bytes.