In array, we place list of items.
Single Dimensional Array
Single dimensional array contains one dimension. For example,
int[] numbers = {10,20,30 };
Two Dimensional Array
Two dimensional array contains 2 dimensions. For example,
string[,] names = { { "1", "John", ".Net" }, { "2", "Michael", "C#" } };
N-Dimensional Array
Array can have N-dimensions like 3-dimensions, 4-dimensions and so on.
Jagged Array
It is array of array. For example,
string[][] semester = new string[4][]; string[] semester1Subjects = new string[3]; semester[0] = semester1Subjects; semester[1] = new string[4] { "Math", "Phy", "Chem", "Bio" }; semester[2] = new string[5]; semester[3] = new string[]{"English","French","German","Spanish"};