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 Object and class adapters?
What is a generic c#?
What is a sealed class?
i have a table named login in mysql database containing (empid,fname,lname,mobno,emailid,usrname,usrpwd) i have 2 textboxes in which i enter my username and pwd..so based on what is entered in those textboxes it should retreive all other details of dat username in the remaining 6 textboxes..i want the code for this...
What is the difference between an application domain and a process?
What is the CTS, and how does it relate to the CLS?
What is native image generator (ngen.exe)?
What is hash c#?
Can hashset contain duplicates c#?
Explain about Oops concept
What is class and object c#?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?