Does C# supports multi-dimensional arrays ?

Answer Posted / art?r herczeg

There are 3 types of arrays:

* Single-dimensional arrays:
int[] numbers = new int[5];

* Multidimensional arrays:
string[,] names = new string[5,4];

* Array-of-arrays (jagged):
byte[][] scores = new byte[5][];
for (int x = 0; x < scores.Length; x++)
{
scores[x] = new byte[4];
}

http://msdn.microsoft.com/library/default.asp?url=/library/
en-us/csref/html/vcwlkArraysTutorial.asp

Is This Answer Correct ?    34 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?

600


How many variables do you need?

490


What is the console on a mac?

467


What is Asynchronous call and how it can be implemented using delegates?

566


What is ado net in c#?

492






In gridview in editmode if we want to display information in one combobox based on

1813


Why is xml called extensible?

493


2. What happened when BO object has been called?

1521


What is type checking in c#?

503


How do I register my code for use by classic com clients?

497


Can dictionary have duplicate keys c#?

491


What is console based application?

467


What the different phase/steps of acquiring a proxy object in webservice?

460


What exception can an overridden method throw in comparison with the method it is overriding?

452


What are modifiers in c#?

464