adspace


How to declares a two-dimensional array in C#?

Answer Posted / Hariom Singh

In C#, you can declare a two-dimensional array by using nested square brackets []. Here's an example:n```csharpnint[,] myArray = new int[3, 4]; // Declares a 2D array with 3 rows and 4 columns```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can't we use a static class instead of singleton?

954


How do you inherit a class into other class in c#?

995


How to assign Null value to Var?

1064


What is expression tree in c#?

998


Which namespaces are necessary to create a localized application?

1142


What is an abstract class c#?

969