Question 50Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

Suppose the two dimensional array is declared as int arr[2][2] = {{1,2},{3,4}};

Suppose the two dimensional array is declared as int arr[2][2] = {{1,2},{3,4}}; Then which of the following will not give the output 4?
  1. A*(*arr + 1)
  2. Barr[1][1]
  3. C*(arr[1] + 1)
  4. D*(*(arr + 1) + 1)
Show answerHide answer

Correct answer: (A) *(*arr + 1)

Explanation

*arr is arr[0], so *(*arr + 1) is arr[0][1] = 2, not 4. The other three expressions all mean arr[1][1] = 4.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

This is question 50 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM). 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.