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
Posted Apr 1, 2014, 9:20 AM
VulpesPosted Apr 1, 2014, 5:27 AM
Jignesh TrivediPosted Apr 1, 2014, 12:36 AM
hi,
Please refer below link, it might help you
http://www.dotnetperls.com/multidimensional-array
http://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx
Selva GanapathyPosted Mar 31, 2014, 10:41 AM
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