Question 75Asked in BEL PE Computer Science, 17 Dec 2023 (8:30 AM)

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…

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. A10i + j + 100
  2. Bi + 10j + 100
  3. C15i + j + 100
  4. Di + 15j + 100
Show answerHide answer

Correct answer: (C) 15i + j + 100

From BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM)

This is question 75 of BEL PE Computer Science PYQ, 17 Dec 2023 (8:30 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.