using System;
class Program
{
static void Main()
{
//Array
//A collection of similar data types
int[] EvenNumbers = new int[3];
EvenNumbers[0] = 0;
EvenNumbers[1] = 2;
EvenNumbers[2] = 4;
// IndexOutOfRangeException does not occur build error
//EvenNumber[3] = 6;
//no compile error, but runtime error
Console.WriteLine(EvenNumbers[1]);
//Advantage : arrays are strongly typed
//Disadvantage: Arrays cannot grow in size once initialized.
// Have to rely on integral indices to store or retrieve items from the array
}
}