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 |
What is the use of the static constructor? When static constructor gets compiled?
Explain the difference between .net and c#?
what is a template?
Can property be private in c#?
what is ment by Unboxing?
What is polymorphism in c sharp?
Is dll a library?
What is a dbml?
What is static void main in c#?
What is serialization of data?
What are generations and how are they used by the garbage collector?
Explain the difference between the debug class and trace class?