// array_init.cpp // Test program showing initialization for array // 1/23/03, Ray S. Babcock // #include using namespace std; int main(void) { int toys[8]={128,-9,32,89,101,67,-900,2}; 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; }