Does C# supports multi-dimensional arrays?

Answers were Sorted based on User's Feedback



Does C# supports multi-dimensional arrays?..

Answer / naveen

yes, also know jagged arrays

Is This Answer Correct ?    6 Yes 0 No

Does C# supports multi-dimensional arrays?..

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

Does C# supports multi-dimensional arrays?..

Answer / kautilya

yes

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the difference between Object and class adapters?

0 Answers   QuestPond,


What is a generic c#?

0 Answers  


What is a sealed class?

0 Answers  


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...

1 Answers   Royal Enfield,


What is the difference between an application domain and a process?

0 Answers  






What is the CTS, and how does it relate to the CLS?

0 Answers   Arigo Infotech,


What is native image generator (ngen.exe)?

0 Answers  


What is hash c#?

0 Answers  


Can hashset contain duplicates c#?

0 Answers  


Explain about Oops concept

0 Answers   Digital GlobalSoft,


What is class and object c#?

0 Answers  


What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?

6 Answers   Wipro,


Categories