#include using namespace std; int main() { int i; // just a variable - stores a value int *p; // int pointer variable - stores a memory address // The * is called a reference p = &i; // no * is needed i = 25; cout << "Var i = " << i << endl; cout << "Address of i = " << &i << endl; cout << "Var p = " << p << endl; cout << "Follow p and get " << *p << endl; // The * is a dereference in this case i=100; cout << "P has changed to " << *p << endl; int *T; T = &i; cout << "T is " << *T << endl; return 0; }