Computer Science, asked by jatinparmar368, 2 days ago

Find the address of arr[8][6] in row major order, base address is 100 and array is of integer datatype. Matrix is of size 10 X 8.​

Answers

Answered by crankybirds31
1

Answer:

If array is declared by a[m][n] where m is the number of rows while n is the number of columns, then address of an element a[i][j] of the array stored in row major order is calculated as, Address(a[i][j]) = B. A. + (i * n + j) * size.

Answered by itzAwesomeSoul10
0

Answer:

Calculating the address Of any element In the 1-D array: A 1-dimensional array (or single dimension array) is a type of linear array. Accessing its elements involves a single subscript that can either represent a row or column index.

Similar questions