#include int main(int argc, char *argv[]) { int a; int * p; // variable p holds an address of an int variable a = 4; cout << "a = " << a << "\n"; p = &a; // &a = the address of the integer variable a // So: assign the address of the integer variable a to p // p now contains the address of the integer variable a // We say: p "points to" a *p = 1234; // Put the value 1234 into the (integer) variable // pointed to by p cout << "a = " << a << "\n"; *p = *p + 10000; cout << "a = " << a << "\n"; }