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 |
Is c# easier than c++?
What are the two uses of a ‘using’ statement in c#?
Why do we use methods in c#?
What is .net console?
Define property in c#.net?
What is the use of multicast delegate while methods of multicast delegate do not execute in a order?
What does readonly mean in c#?
What is a multi line comment?
Any .net training centers available near hitech city , hyderabad?
How can you clean up objects holding resources from within the code?
What is datareader c#?
what is the difference between interface and multiple interface?