If I have the following pointer variable declarations:
int *a;
int **c;
Regarding to the type and what values each will hold, will it be as follows:
a
is of type int*
, and will hold a memory address
*a
is of type int
, and will hold the value of the variable the pointer is pointing to
c
is of type int**
, and will hold ?????????????????????
c*
is of type int*
, and will hold the memory address of the pointer it is pointing at
c**
is of type int
, and assuming that pointer c
is pointing to pointer b
, and pointer b
is pointing to variable a
, here, the value held will be the value of the variable a
Is it correct this way, except c
which I'm not sure about?
Thanks.