Demonstrate an array overrun
// Demonstrate an array overrun. using System; public class ArrayErr { public static void Main() { int[] sample = new int[10]; int i; // generate an array overrun for(i = 0; i < 100; i = i+1) { sample[i] = i; } } }