Multi Dimensional Array
An array allows to refer related values by the same name and to use a number, called an index or subscript, to tell them apart. Array elements can be of any type, including an array type. Array is the abstract base type of all array types.
An array that uses more than one index or subscript is called multidimensional. A dimension is a direction in which you can vary the specification of an array's elements. C# supports single-dimensional arrays, multidimensional arrays and array-of-arrays .
Some arrays have two dimensions, therefore, such an array uses two indexes. The following example declares a variable to hold a two-dimensional array of office counts, for buildings 0 through 40 and floors 0 through 5.
The following C# program shows a simple example of how to insert values in a two dimensional array and retrieve the values from two dimensional array.