Equivalent pointer expression for referring the array

Q.  What would be the equivalent pointer expression for referring the array?

arr[p][q][r][m]

- Published on 17 Jun 15

a. * (*(*(*(arr+p)+q)+r)+m)
b. arr[0];
c. *((((arr+p)+q)+r)+m)
d. None of the above.

ANSWER: * (*(*(*(arr+p)+q)+r)+m)

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)