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
What is the default boolean value in c#?
Explain About .NET Framework
How many types of constructors are there?
What is extension method in c sharp?
What is the difference between as and is operators in c#?
Why are strings in c# immutable?
Is there an equivalent to the instanceof operator in visual j++?
What do you mean by jagged arrays in c#?
Do extension methods have to be static?
What is integer c#?
What is the difference between int and int in c#?
What is data type in c# with example?
What language do desktop applications use?
Do events have return type c#?
Explain the features of an abstract class in net.