Interview Questions

Which of these statements correctly declares a two-dimensional array in C#?

C# Interview Questions and Answers


(Continued from previous question...)

14. Which of these statements correctly declares a two-dimensional array in C#?

  1. int[,] myArray;
  2. int[][] myArray;
  3. int[2] myArray;
  4. System.Array[2] myArray;

(Continued on next question...)

Other Interview Questions