On a recent exam I took, the following question was given:

int ***p;

give the type for the each of the following:

a. p
b. *p
c. **p
d. ***p

For part a, should I be given any credit for saying an "address of an address of an address?" After looking at the book this morning, I realized that I may have answered the question incorrectly (should be pointer of a pointer of a pointer to int).

Maybe this is the right answer:

p => pointer to pointer to pointer to int

*p => pointer to pointer to int

**p => pointer to int

***p => an int

You just keep applying the basic fundamentals and use the defination of dereferencing an u will get the answer easily.

I hope i am right and if not please someone rectify me.