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
Give some examples for built in datatypes in c#?
Is arraylist faster than linkedlist?
What is parallel foreach c#?
Why do we still see so much non-oo code written in c# today?
What is the difference between “dispose” and “finalize” variables in c#?
What is a private class in c#?
Is ram a heap?
Is struct object oriented?
Define using statement in c#?
List the difference between the virtual method and the abstract method?
How many types of inheritance are there in c#?
Can a struct be null?
What are the basics of c#?
What is difference between encapsulation and abstraction in c#?
What is mvc in c#?