Which of the following is a valid declaration for a 2D array in C?
Coal India Management Trainee CBT 2026
Which of the following is a valid declaration for a 2D array in C?
- A.
int a[][] = {{1,2}, {3,4}};
- B.
int a[2,2] = {{1,2}, {3,4}};
- C.
array a[2][2] = {{1,2}, {3,4}};
- D.
int a[2][2] = {{1,2}, {3,4}};
Attempted by 335 students.
Sign up free to check your answer
Sign up freeLoading lesson…

