Does C# supports multi-dimensional arrays ?

Answers were Sorted based on User's Feedback



Does C# supports multi-dimensional arrays ?..

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

Does C# supports multi-dimensional arrays ?..

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

Does C# supports multi-dimensional arrays ?..

Answer / ankita

Explain how Multidimensional Arrays are used in a Visual
Basic application

Is This Answer Correct ?    0 Yes 3 No

Does C# supports multi-dimensional arrays ?..

Answer / swapna

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

Post New Answer

More C Sharp Interview Questions

How to prevent the error while updating ui control from another thread?

0 Answers  


What is the default value of boolean variable?

0 Answers  


Can structs in c# have destructors?

0 Answers  


Explain the access modifiers in c#?

0 Answers  


How can I create a process that is running a supplied native executable (e.g., Cmd.exe)?

0 Answers  






What do multicast delegates mean?

0 Answers  


What is CASPOL?

0 Answers   MCN Solutions,


What is difference between class and abstract class in c#?

0 Answers  


What is a framework in c#?

0 Answers  


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

0 Answers  


Can multiple catch blocks be executed?

4 Answers  


Is there any way to access private memebers of an object from another object?

4 Answers   TCS,


Categories