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 type class in c#?
how to convert String array to StringBuilder array or vice versa?
What is a property in c#?
What is difference between static and readonly in c#?
How many constructors can a class have in c#?
Does the variables of a private class-level inherited?
What is Interface Polymorphism?with E.g
What does addressof operator do in background ?
You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?
What is func c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
Which is more efficient for loop or while loop?
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)