int[,] ar = new int[2, 3] { { 1, 2, 3 }, { 4, 5, 6 } }
Above 2D array can be imagined like following way
1 2 3
4 5 6
2 rows and 3 columns
2*3 = 6 elements
How can we imagine following 3D array.
int[,,] ar = new int[2, 3, 2] {??? ???? ???? }
Loading

Selva GanapathyRank #560 · 4.3K reputationPosted Mar 31, 2014, 6:41 AM EDT
You can image the 3D array as follows
Sheet1 Sheet2 Sheet3
1 2 2 1 7 8
4 5 5 2 10 11
3 sheets, 2 rows and 2 columns
3*2*2 = 12 elements.
Regards,
Selva Ganapathy K
Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 31, 2014, 8:36 PM EDT
hi,
Please refer below link, it might help you
http://www.dotnetperls.com/multidimensional-array
http://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx
VulpesRank #55 · 29.2K reputationPosted Apr 1, 2014, 1:27 AM EDT
Posted Apr 1, 2014, 5:20 AM EDT