#include void f( int *a ) // No special & symbol... { cout << "Before update: a = " << a << endl; cout << "Before update: *a = " << *a << endl << endl; *a = *a + 1; cout << "After update: a = " << a << endl; cout << "After update: *a = " << *a << endl << endl; } int main(int argc, char *argv[]) { int x = 10; cout << "Main: x = " << x << endl; cout << "Main: &x = " << &x << endl << endl; f( &x ); // Pass address of x cout << "Main: x = " << x << endl; cout << "Main: &x = " << &x << endl << endl; }