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

Give some examples for built in datatypes in c#?

0 Answers  


Why are dynamic link library used over static one?

0 Answers   C DAC,


How long will it take to learn c#?

0 Answers  


Describe the overview of clr integration.

0 Answers  


How do I create a .exe file?

0 Answers  






What is single dimensional array in c#?

0 Answers  


What will a loop recorder show?

0 Answers  


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

1 Answers   Syntel,


What are extender provider components? Explain how to use an extender provider in the project.

0 Answers  


What is a namespace server?

0 Answers  


Explain how many types of exception handlers are there in .net?

0 Answers  


What is an interface class? Give one example of it

0 Answers  


Categories