#include using namespace std; int main() { int test = 5; int * ptr = &test; cout << "Location of int 'test': " << &test << endl; cout << "Location of test (through ptr): " << ptr << endl; cout << "Location of ptr (the pointer its self): " << &ptr << endl << endl; cout << "Value of test: " << test << endl; cout << "Value of test (through ptr): " << *ptr << endl; return 0; }