What is the equivalent of a[5] notation (not in the definition) ?
Explanation
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».

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты