Computer Science · Data Structures
For a 2-D array with 'm' rows and 'n' columns represented in row-major order, the index formula to access the element at row 'i' and column 'j' using the base address 'B' (assuming element size is 1) is:
- 1B + (i * n + j)✓
- 2B + (j * n + i)
- 3B + (i + j)
- 4B + (i * m + j)
Correct answer
B + (i * n + j)
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures