// ptr1.cpp // Test program showing simple pointers // 1/28/03, Ray S. Babcock // #include using namespace std; int main(void) { int fred(10); int suzie(3); int * p1(NULL); p1 = &fred; cout << "&fred = " << &fred << endl; cout << "&suzie = " << &suzie << endl; cout << p1 << endl; cout << *p1 << endl; }