Can any one hel me how can i read this type of array....?
using System;
class JaggedArrayMultiDimensional
{
static void Main()
{
int[][,] jaggedArray4 = new int[3][,]
{
new int[,] { {1,3}, {5,7} },
new int[,] { {0,2}, {4,6}, {8,10} },
new int[,] { {11,22}, {99,88}, {0,9} }
};
/*foreach(int[ , ] i in jaggedArray4)
{
foreach(int[] j in i)
{
foreach(int k in j)
Console.Write(k);
}
}*/
for(int i=0; i
{
for(int j=0; j< jaggedArray4[i,j].Length; j++)
{
Console.WriteLine();
}
}
}
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Jun 20, 2011, 4:42 AM EDT
Sandeep ShekhawatRank #2,439 · 577 reputationPosted Jun 20, 2011, 3:28 AM EDT