C# (Sharp) Programming Language Question:
Which of these statements correctly declares a two-dimensional array in C#?
Answer:
1. int[,] myArray;
2. int[][] myArray;
3. int[2] myArray;
4. System.Array[2] myArray;
2. int[][] myArray;
3. int[2] myArray;
4. System.Array[2] myArray;
Previous Question | Next Question |
Which of these string definitions will prevent escaping on backslashes in C#? | If a method is marked as protected internal who can access it? |