/* testarr01.cpp CIS 150 06/23/2005 David Klick Demonstration of array declaration which also shows that the array elements are not initialized by default. */ #include using std::cout; int main(void) { // declare array int nums[10]; int i; // display array elements for (i=0; i<10; i++) { cout << nums[i] << '\n'; } cout << '\n'; return 0; } /* Sample output: 2293600 2009196833 2293648 4198456 2147348480 0 2293648 4265794 4415488 4415488 */