Question 132

What is the output? int a[2][3] = {1, 2, 3, 4, 5, 6};

What is the output? int a[2][3] = {1, 2, 3, 4, 5, 6}; printf("%d", a[1][1]);
  1. A5
  2. B2
  3. C4
  4. D6
Show answerHide answer

Correct answer: (A) 5

Explanation

Row 1 is {4, 5, 6}; column 1 gives 5.

From DSSSB TGT Computer Science Full Mock Test 2

This is question 132 of DSSSB TGT Computer Science Full Mock Test 2. 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.