An array is a sequential collection of elements of same data type and stores data elements in a continuous memory location.
A jagged array is an array whose elements are arrays, possibly of different sizes.
classTestArraysClass{staticvoidMain() { // Declare a single-dimensional array of 5 integers.int[] array1 =newint[5]; // Declare and set array element values.int[] array2 =newint[] { 1,3,5,7,9 }; // Alternative syntax.int[] array3 = { 1,2,3,4,5,6 }; // Declare a two dimensional array.int[,] multiDimensionalArray1 =newint[2,3]; // Declare and set array element values.int[,] multiDimensionalArray2 = { { 1,2,3 }, { 4,5,6 } }; // Declare a jagged array.int[][] jaggedArray =newint[6][]; // Set the values of the first array in the jagged array structure.jaggedArray[0] =newint[4] { 1,2,3,4 }; }}