// Using the & and * operators #include main() { int a; // a is an integer int *aPtr; // aPtr is a pointer to an integer a = 7; aPtr = &a; // aPtr set to address of a cout << "The address of a is " << &a << endl << "The value of aPtr is " << aPtr << endl << endl; cout << "The value of a is " << a << endl << "The value of *aPtr is " << *aPtr << endl << endl; cout << "Proving that * and & are complements of " << "each other." << endl << "&*aPtr = " << &*aPtr << endl << "*&aPtr = " << *&aPtr << endl; return 0; }