// Ex620.cc // Sec. 6.2 of lecture // Pointer operators #include main() { int i, j, *pint; i = 10; pint = &i; // pointer initialization j = *pint; // access on int cout << endl << " " << i << " " << j << " " << *pint << " " << pint << endl; *pint = 0; // initialize i by 0 cout << endl << " " << i << " " << j << " " << *pint << " " << pint << endl; *pint += 2; // add 2 to i cout << endl << " " << i << " " << j << " " << *pint << " " << pint << endl; }