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

What is the use of the static constructor? When static constructor gets compiled?

1 Answers   Syntel,


Explain the difference between .net and c#?

0 Answers  


what is a template?

3 Answers   Choice Solutions,


Can property be private in c#?

0 Answers  


what is ment by Unboxing?

3 Answers  






What is polymorphism in c sharp?

0 Answers  


Is dll a library?

0 Answers  


What is a dbml?

0 Answers  


What is static void main in c#?

0 Answers  


What is serialization of data?

0 Answers  


What are generations and how are they used by the garbage collector?

0 Answers  


Explain the difference between the debug class and trace class?

0 Answers  


Categories