#include int main(int argc, char **argv) { int x = 42; int *p; // p is a pointer to an integer p = &x; // p now contains the address of x printf("x is %d\n", x); printf("&x is %p\n", &x); printf("p is %p\n", p); return 0; }