Does C# supports multi-dimensional arrays ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nagesh
C# supports single-dimensional arrays, multidimensional
arrays (rectangular arrays), and array-of-arrays (jagged
arrays).
Please refer the msdn site for more information:
http://msdn2.microsoft.com/en-us/library/aa288453
(VS.71).aspx
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / ankita
Explain how Multidimensional Arrays are used in a Visual
Basic application
Is This Answer Correct ? | 0 Yes | 3 No |
No c# does not supports Multidimensional arrays.
Jagged arrays are used in c# but they are not always
rectangular like normal multidimensional arrays.
jagged arrays are of different dimensions and mostly Jagged
array are created out of single dimensional arrays .
Is This Answer Correct ? | 4 Yes | 30 No |
What is verbatim string?
what is serilization?
How do you access a constant field declared in a class?
What is dll file in c#?
What are three test cases you should go through in unit testing?
1 Answers Siebel Systems, Wipro,
what are value types and reference types? where they are stored?
What is the default modifier for class in c#?
Which config file has all the supported channels/protocol?
how to return morethan one value using out parameter in c#.net ; For Example : public int show(out int []a) { int []a={1,2,3,4,5}; return a[]; } we have to print all the values without using the Console.WriteLine statement;
How do you use nullable?
Does c# have its own class library?
What are custom attributes in c#?