// index_address.cpp // Test program showing addressing for array // 1/23/03, Ray S. Babcock // #include using namespace std; int main(void) { int toys[8]={0}; cout << "&toys = " << &toys << endl; cout << "&(toys[0]) = " << &(toys[0]) << endl; cout << "&(toys[1]) = " << &(toys[1]) << endl; cout << "&(toys[2]) = " << &(toys[2]) << endl; cout << "&(toys[3]) = " << &(toys[3]) << endl; cout << "&(toys[4]) = " << &(toys[4]) << endl; cout << "&(toys[5]) = " << &(toys[5]) << endl; cout << "&(toys[6]) = " << &(toys[6]) << endl; cout << "&(toys[7]) = " << &(toys[7]) << endl; }