Interviews1 answer
What is a Jagged Array in C#?
1 Answer
A Jagged array is an array of arrays.
We can declare it in the below manner:
string[][] sJaggedArray = new string[3][];
sJaggedArray[0] = new string[]{"One","Two","Three","Four"};
sJaggedArray[1] = new string[] { "One", "Two", "Three" };
sJaggedArray[2] = new string[] { "One", "Two" };
Each element of the array is another array in itself.
Hope it helped
Vipul MalhotraPosted Jun 13, 2016, 6:50 AM EDT
