Question 106Asked in CIL MT Systems, 24 Aug 2026 (3:00 PM, CBT-26)

Which of the following is a valid declaration for a 2D array in C?

  1. Aint a[2,2] = {{1,2}, {3,4}};
  2. Barray a[2][2] = {{1,2}, {3,4}};
  3. Cint a[2][2] = {{1,2}, {3,4}};
  4. Dint a[][] = {{1,2}, {3,4}};
Show answerHide answer

Correct answer: (C) int a[2][2] = {{1,2}, {3,4}};

From CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26)

This is question 106 of CIL MT Systems PYQ, 24 Aug 2026 (3:00 PM, CBT-26). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.