C program to demonstrate example of double pointer (pointer to pointer)
In this program, we have to declare, assign and access a double pointer (pointer to pointer) in C.
As we know that, pointers are the special type of variables that are used to store the address of another variable.
But, when we need to store the address of a pointer variable, we cannot assign it in a pointer variable. To store address of a pointer variable, we use a double pointer which is also known as pointer to pointer.
C program for double pointer (pointer to pointer)
Output
Value of a (using p1): 100 Value of a (using p2): 100 Value of a: 200 Value of a: 200need an explanation for this answer? contact us directly to get an explanation for this answer