Q. Which of the following is a correct way to declare a 2D array in C?

  • (A) int array[10,10];
  • (B) int array[10][10];
  • (C) int array[10]10;
  • (D) int array10][10];
πŸ’¬ Discuss
βœ… Correct Answer: (B) int array[10][10];
Explanation: This is the correct syntax for declaring a 2D array in C.
Explanation by: Mr. Dubey
This is the correct syntax for declaring a 2D array in C.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
62
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate