/* * This program will blow up on some systems. It's more interesting * when it doesn't */ #include #include int main() { // Declare an array of size four, and some other variables. int a; std::array arr; int z; int m; // Treat the array as if it were size ten and see what happens a = 99; z = 100; for(m = 0; m < 10; m++) arr[m] = 2*m - 1; for(m = 0; m < 10; m++) std::cout << arr[m] << " "; std::cout << std::endl << a << " " << z << std::endl; }