3 ms·
C array access syntax is just syntactic sugar for pointer arithmetic. The array decays to a pointer so `t[i]` is interpreted as: *(t + i) So you can see h
by ChrisSD 6y ago
C array access syntax is just syntactic sugar for pointer arithmetic. The array decays to a pointer so `t[i]` is interpreted as:
*(t + i)
So you can see how swapping that around to `i[t]` is effectively the same operation:
*(i + t)