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
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?
How many variables do you need?
What is the console on a mac?
What is Asynchronous call and how it can be implemented using delegates?
What is ado net in c#?
In gridview in editmode if we want to display information in one combobox based on
Why is xml called extensible?
2. What happened when BO object has been called?
What is type checking in c#?
How do I register my code for use by classic com clients?
Can dictionary have duplicate keys c#?
What is console based application?
What the different phase/steps of acquiring a proxy object in webservice?
What exception can an overridden method throw in comparison with the method it is overriding?
What are modifiers in c#?