C Program to demonstrate double pointer
Program
#include<stdio.h>
void main()
{
int a = 123;
int *ptr;
int **dblptr;
ptr = &a;
dblptr = &ptr;
printf("Value of a is:\t%d\n", a);
printf("Value of a using single pointer is:\t%d\n", *ptr);
printf("Value of a using double pointer is:\t%d\n", **dblptr);
}
Output
Value of a is: 123
Value of a using single pointer is: 123
Value of a using double pointer is: 123