Computer Science, asked by krishmahidhar99, 6 hours ago

1.Mat is a two dimensional array of 10 rows and 5 columns Each element of the array isstoring 2 bytes of memory. If Mat[0||0] starts at address 2100, the location of Mat|3||4|when the array is stored in column major-wise will be:
a 2138
b2183
c 2186
d. 2816​

Answers

Answered by aukatsebahar
0

Explanation:

A[10][5] => rows R=10,

columns C=5

Let base address be B

Given element

width W=3 bytes

and A[0][0]=2100

In Row major,

A[I][J]=B+W(C(I=lr)+(j-lc)

where lr=lowest row and lc=lowest column calculate the rest...

Similar questions