Does C# supports multi-dimensional arrays?
Answer Posted / 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 |
Post New Answer View All Answers
What is the usage of OLE?
What is the difference between dispose() and finalize() methods in c#?
Define an assembly in .net?
Can you prevent a class from being instantiated?
What is xpath in c#?
What is difference between continue and break in c#?
Does c# support properties of array types?
How is a string immutable?
Is php better than c#?
What is the purpose of namespace?
What is the default value of datetime in c#?
What is remote data?
So let's say I have an application that uses myapp.dll assembly, version 1.0.0.0. There is a security bug in that assembly, and I publish the patch, issuing it under name myapp.dll 1.1.0.0. How do I tell the client applications that are already installed to start using this new myapp.dll?
what is boxing and unboxing?can we initialize unboxing directly?
what is virtual method in c#?