#include <stdio.h>
int main() {
int a;
int* aPtr;
a = 7;
aPtr = &a;
printf("\nThe value of a is %d"
"\nThe value of *aPtr is %d", a, *aPtr);
printf("\nThe address of a is %p"
"\nThe value of aPtr is %p", &a, aPtr);
printf("\na = %d\t*aPtr = %d\t\t&a = %p\taPtr = %p\n", a, *aPtr, &a, aPtr);
*aPtr = 15;
printf("Dereferencing pointer, *aPtr = %d and a = %d\n", *aPtr, a);
printf("Showing that & and * are complements of each other\n");
printf("&*aPtr = %p\n", &*aPtr);
printf("*&aPtr = %p\n", *&aPtr);
}