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 difference between dataset and datatable in c#?
what is a delegate? what it is used for?
13 Answers Choice Solutions, TCS,
Differentiate between object pooling and connection pooling in c#?
What are the delegates in c#?
Are all methods virtual in c#?
What is a class in unity?
Is php better than c#?
Is c# an open source language?
Difference between value and reference type.
If you donot specify an access modifier for a method, what is the default access modifier?
What kind of the information stored inside the assembly?
How do you sort a list in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)