Examveda

What is the correct way to declare and initialize a multidimensional array with 3 rows and 4 columns in C#?

A. int[3, 4] matrix = new int;

B. int matrix[3, 4];

C. int[,] matrix = new int[3, 4];

D. int[3][4] matrix;

Answer: Option C


Join The Discussion

Related Questions on Arrays and Strings in C Sharp