With a Jagged array, every row can have different sizes.
int[][] jagged = new int[3][];
jagged[0] = new int[2] {5,10};
jagged[1] = new int[5] {2,4,6,8,10};
jagged[2] = new int[3] {9,10,14};
Guys, any comment?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Hemant SrivastavaPosted Jun 4, 2013, 5:32 PM
They are faster because they use the "newarr", vector IL calls internally.
VulpesPosted Jun 3, 2013, 2:55 PM
With a rectangular array, you have to create a single dimensional array and copy elements to it for the row you're interested in.