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
Explain the difference between access specifier and access modifier in c#?
Give 2 scenarios where static constructors can be used?
Are arrays value types or reference types?
In gridview in editmode if we want to display information in one combobox based on
How does c# achieve polymorphism?
List the different stages of a thread?
How to exclude a property from xml serialization?
Why do we parse in c#?
Which program construct must return a value?
what is the difference between interface and multiple interface?
What is Inheritance in C#?
What is method in c#?
Give examples for value types?
What is the C# syntax to catch any possible exception?
Does the system.exception class have any cool features?