what do you mean by a pointer to a pointer? Can this be extended?
Answers
Answered by
2
A pointer variable can be assigned the address of an ordinary variable.
Now, this variable itself could be another pointer.
This means that a pointer can contain the address of another pointer.
Explanation:
A pointer to a pointer is a form of multiple indirections, or a chain of pointers.
Normally, a pointer contains the address of a variable.
When we define a pointer to a pointer, the first pointer contains the address of the second pointer that points to the location that contains the actual value.
A variable that is a pointer to a pointer must be declared as such.
This is done by placing an additional asterisk in front of its name.
Similar questions