For a 2-D array represented in row-major order, the index formula to access the element at row "i" and column "j" using the base address "B" is:
Show answerHide answer
Correct answer: (A) Index = B + (i * n + j)
Explanation
In row-major order the rows are stored one after another, so element (i, j) is at B + (i × n + j) for n columns (times the element size, taken as 1 here).