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».
Войдите чтобы поставить Нравится
Войдите чтобы прокомментировать