what is the difference between *p[5] and (*p)[5]?

Viewed 5126

While going through an example of pointers I came across a line which was *p[5] declares p as an array of 5 pointers while (*p)[5] declares p as a pointer to an array of five elements. I didn't understand the difference between them.

Could anyone explain it with an example?

4 Answers
Related