πŸ“Š C#
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));
    }
  }
}
  • (A) 4,4
  • (B) 2,2
  • (C) Compilation Error
  • (D) Runtime Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 2,2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
190
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate