/*=============================*/
/*  File: ArrayTest.c          */
/*  Try this with a SIZE of 5  */
/*  to illustrate overrun      */
/*=============================*/

#include <stdio.h>

#define SIZE  1000

int main (void)
{
    int i = 0;
    int array[SIZE];

    puts("Starting test...");
    for (i = 0; i < 10000; i++)
    {
        if (i % 1000 == 0)
            printf("%5d\n", i);
        array[i] = i;
    }
    puts("Testing ended");
    getchar();
    return 0;
}
