#include <stdio.h>

int main(){
    int i = 2;
    int* ptr1 = &i;
    int **ptr2= &ptr1;
    printf("The address of i is %u\n", &i);
    printf("The value of i is %d\n", *ptr1);
    printf("The value of i is %d\n", **ptr2);
    return 0;
}

Embed on website

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