πŸ“Š C#
Q. Which of the correct syntax to declare an array with 2 rows and 3 columns in C#?
  • (A) int arr[2][3] = new int[2][3];
  • (B) int arr[2,3] = new int[2,3];
  • (C) int[,] arr = new int[2,3];
  • (D) int [,]arr = new [2,3]int;
πŸ’¬ Discuss
βœ… Correct Answer: (C) int[,] arr = new int[2,3];

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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