Vidyalelo
C# Programming · Q28

Arrays and Strings in C Sharp

Programming · C# Programming · question 28

Q28

What is the correct syntax to declare a multidimensional array in C#?

A.
int[2,2] matrix;
B.
int[,] matrix;
Answer
C.
int[2][2] matrix;
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board