Consider 2 dimensional array A[10][15]. Assume that each element takes one…

BEL · Computer Science · Probationary Engineer · 2023

Consider 2 dimensional array A[10][15]. Assume that each element takes one memory location and base address of array A is 100. Consider the lower bound of row and column as 0. What is the address of A[i][j] if array A is stored in row major form?

  1. A.

    i + 15j + 100

  2. B.

    10i + j + 100

  3. C.

    i + 10j + 100

  4. D.

    15i + j + 100

Attempted by 407 students.

Show answer

Correct answer: D

The worked solution is available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…