Math, asked by pkaranjkar2405, 21 hours ago

Consider array of the m[5] [7] .Calculate the address of m[3] [4] in row and column major representation. Use base address = 100.​

Answers

Answered by talpadadilip417
0

Answer:

 \mathbf{ \bold{hello}}

Answered by monica789412
0

89 is the address of \[m[3][4]\]  .

Given:

Base address, B=100

Row subset of an element whose address to be found, I=3

Column subset of an element whose address to be found ,J=4

The Lower limit of row index of matrix ,LR=5

The Lower limit of column index of matrix =7

To Find:

The address of \[m[3][4]\]  .

Step-by-step explanation:

Number of columns given in the matrix

\[  & M=UpperBound-LowerBound+1 \\  & M=7-5+1=3 \\ \end{align}\]

The formula to calculate the address of \[m[3][4]\] .

\[  & A[I][J]=B+W\times ((J-LC)\times M+(I-LR)) \\ \\ & A[3][4]=100+1\times ((4-7)\times 3+(3-5))=89 \\ \end{align}\]

Hence, the Address of A[3][4]=89

Similar questions