#include <stdio.h>

int main()
{
    int a =10;
    printf("the current value of a is %d",a);
    int *p = &a;
    printf("\nthe address of a and value of p is %d",p);
    *p = 20;
    printf("\nvalue of a is %d",a);
    int **c=p; //here * is like a key from which we can change value
    printf("\nvalue of **c %d",a);
    *c = 40;
    int ***d=c;
    printf("\nvalue of ***d %d",a);

    return 0;
}
/* *p is the key to the value in a varaible which we can change
   &p is the address of the p variable
   p is the pointer variable which pointes the value inside p
*/

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: