using System;
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;
}
}
Friday, September 5, 2008
C# code snippet to demonstrate an array over-run.
Posted by Nanya at 6:50 AM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment