/*
* This program will blow up on some systems. It's more interesting
* when it doesn't
*/
#include <iostream>
using namespace std;
int main()
{
int a;
int arr[4];
int z;
int m;
a = 99;
z = 100;
for(m = 0; m < 10; m++) arr[m] = 2*m - 1;
for(m = 0; m < 10; m++) cout << arr[m] << " ";
cout << endl << a << " " << z << endl;
}
Native C out-of-bounds behavior is the same.