TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Smart Lucky
NA
555
640.9k
Multi Dimensional Jagged Array
Jun 20 2011 7:18 AM
Hi
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<jaggedArray4.Length; i++)
{
for(int j=0; j< jaggedArray4[i,j].Length; j++)
{
Console.WriteLine();
}
}
}
}
Reply
Answers (
2
)
Customize Template and save in database
Replacing a line in a file