Double Pointer in C
Double Pointer in C
Double Pointer in C is defined as a pointer to store the address of another pointer. The first pointer is used to store the address of a variable And the second pointer is used to store the address of the first pointer.
Diagramatic Representation
For example
pr2 is a pointer is holds the address of an integer variable num. and there is another pointer pr1 that holds the address of another pointer pr2, the pointer pr1 here is a double-pointer.
Following is the syntax of declaring a double pointer is