how to print the address of a pointer in c
snippet in c

how to print the address of a pointer in c

user3511

int a = 42;

printf("%p\n", (void *) &a);