Q. What will be the output of the following C# code?
Code:
using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
int[,] ARR = {{1,2},{3,4}};
Console.WriteLine(ARR.GetLength(0)+","+ARR.GetLength(1));
}
}
}
β
Correct Answer: (B)
2,2