Does C# supports multi-dimensional arrays?

Answers were Sorted based on User's Feedback



Does C# supports multi-dimensional arrays?..

Answer / naveen

yes, also know jagged arrays

Is This Answer Correct ?    6 Yes 0 No

Does C# supports multi-dimensional arrays?..

Answer / anand

Yes in addition to single-dimensional arrays, C# supports
the declaration of multidimensional arrays where each
dimension of the array is separated by a comma. Here I'm
declaring a three-dimensional array of doubles: -
double[,,] numbers;
Examples:

currentMonth=10;
sales = new double[2, currentMonth];
for (int i = 0; i < sales.GetLength(0); i++)
{
for (int j=0; j < 10; j++)
{
sales[i,j] = (i * 100) + j;
}
}

Is This Answer Correct ?    3 Yes 0 No

Does C# supports multi-dimensional arrays?..

Answer / kautilya

yes

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Which is the best way for keeping the data in XML or SQL server..and why?

8 Answers   Infosys, Satyam,


What is difference between .net and c#?

0 Answers  


What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception?

1 Answers   Visual Soft,


what is the index value of the first element in an array?

0 Answers  


What is ioc containers c#?

0 Answers  






How does bitwise work?

0 Answers  


How big is an int in c#?

0 Answers  


Why we use get and set property in c#?

0 Answers  


How to use session under class file of APP_Code folder?

0 Answers   ADITI,


Why does my windows application pop up a console window every time I run it?

0 Answers  


How does aspect oriented programming work?

0 Answers  


What is the keyword used to prevent a class from being inherited by another class?

0 Answers   Siebel,


Categories