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

Given a 3-dimensional array C[3][4][5] stored in row-major order, with each element

Given a 3-dimensional array C[3][4][5] stored in row-major order, with each element occupying 1 byte, and the base address 3000, what is the address of C[2][3][4]?
  1. A3057
  2. B3059
  3. C3124
  4. D3171
Show answerHide answer

Correct answer: (B) 3059

Explanation

Offset = i × (4 × 5) + j × 5 + k = 2 × 20 + 3 × 5 + 4 = 59, so the address is 3000 + 59 = 3059.

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

This is question 34 of DSSSB TGT Computer Science PYQ (Technical), 13 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.