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?
- A.
i + 15j + 100
- B.
10i + j + 100
- C.
i + 10j + 100
- D.
15i + j + 100
Attempted by 407 students.
Show answer
Correct answer: D
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…