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 |
Which is the best way for keeping the data in XML or SQL server..and why?
What is difference between .net and c#?
What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception?
what is the index value of the first element in an array?
What is ioc containers c#?
How does bitwise work?
How big is an int in c#?
Why we use get and set property in c#?
How to use session under class file of APP_Code folder?
Why does my windows application pop up a console window every time I run it?
How does aspect oriented programming work?
What is the keyword used to prevent a class from being inherited by another class?