Does C# supports multi-dimensional arrays?
Answers were Sorted based on User's Feedback
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 |
Give some examples for built in datatypes in c#?
Why are dynamic link library used over static one?
How long will it take to learn c#?
Describe the overview of clr integration.
How do I create a .exe file?
What is single dimensional array in c#?
What will a loop recorder show?
What is the use of the static constructor? When static constructor gets compiled?
What are extender provider components? Explain how to use an extender provider in the project.
What is a namespace server?
Explain how many types of exception handlers are there in .net?
What is an interface class? Give one example of it