1.

What is pointer to pointer in C?

Answer»

In C, a POINTER can also be used to store the address of another pointer. A double pointer or pointer to pointer is such a pointer. The address of a VARIABLE is STORED in the FIRST pointer, whereas the address of the first pointer is stored in the second pointer.

The syntax of declaring a double pointer is GIVEN below:

int **p; // pointer to a pointer which is pointing to an integer


Discussion

No Comment Found