// address.cpp -- using the & operator to find addresses #include int main() { using namespace std; int donuts = 6; double cups = 4.5; cout << "donuts value = " << donuts; cout << " and donuts address = " << &donuts << endl; // NOTE: you may need to use unsigned (&donuts) // and unsigned (&cups) cout << "cups value = " << cups; cout << " and cups address = " << &cups << endl; // cin.get(); return 0; }