ISRO 2020 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0105

Consider a 2-dimensional array x with 10 rows and 4 columns, with each element storing a value equivalent to the product of row number and column number. The array is stored in row-major format. If the first element x[0][0] occupies the memory location with address 1000 and each element occupies only one memory location, which all locations (in decimal) will be holding a value of 10?
  1. A
    \(1018,1019\)
  2. B
    \(1022,1041\)
  3. C
    \(1017,1036\)
  4. D
    \(1000,1399\)

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/331475/isro2020-18

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com