Consider two dimensional array x: array [1..10][1..15] of integer type. Assume that each integer takes one memory location and array is stored in row major order. First element of array is at location 150. What is the address of element x[i,j]?
Answers
Answered by
21
Let A be a two dimensional array:
A: array [1 …. 10] [1 ….. 15] of integer;
Assuming that each integer takes one memory location, the array is stored in row-major order and the first element of the array is stored at location 100, what is the address of the element A[i][j]?
A. 15 i + j + 84
B. 15 j + i + 84
C. 10 i + j + 89
D. 10 j + i + 89
Answered by
0
Answer:
answer please aannananan
Similar questions