/* EX8-9.c */ #include /* Declare a single-dimensional array */ int elements[10] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; int idx; main() { for (idx = 0; idx < 10; idx++) { printf( "\nelements[%d] = %d ", idx, elements[idx] ); } return 0; } /* end of main() */