a[b] notation is equivalent to *(a + b) and b[a].
Not necessarily array should be placed to the left of squared brackets - any pointer may be placed there. For example, (a + 2)[3] or (a + 3)[2] can be written, and it will be equivalent to a[5]. (a + 2) notation means «shift the а pointer by two ints».

Login in to like

Login in to comment