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».

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes