#include <stdio.h>

int main() {
   int x = 42;
   int *p = &x;
   
   printf("The value of x is: %d\n", x);
   printf("The value of *p is: %d\n", *p);
   printf("The value of p is: %p\n", (void *)p);
   printf("The address of x is: %p\n", (void *)&x);
   
   return 0;
}

Embed on website

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