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
Distinguish between finally and finalize blocks?
What are Namespaces?
What is garbage collector and where should you use in .NET?
What are the different types of classes?
Which program construct must return a value?
What is the use of protected in c#?
What is the difference between read and readline in c#?
How do you escape in c#?
How does bitwise work?
How to move to a state-related codebase?
How we can create an array with non-default values?
What is indexer c#?
What is Wrapper class in dot net?
What is a Managed Code??
What is callback method in c#?