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
Define a jagged array in c#?
What is event sourcing in c#?
What is the use of console application in c#?
What sort algorithm does c# use?
What is console based application?
What is the use of 'as' Keyword in C# ?
What is meant by enumerable in c#?
What is an array? Give the syntax for a single and multi-dimensional array?
How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?
List the difference between the virtual method and the abstract method?
What are cshtml files?
What is difference between continue and break in c#?
What is the name of c# compiler?
What is a private method in c#?
What is sqladapter c#?