494 views

2 Answers

Best answer
3 votes
3 votes
number of rows= 5-(5)+1=11

number of columns= 13-3+1=11

A[i] [j]=[(8-3)*11 +(0+5)]*2 +100

220
selected by
0 votes
0 votes
Formula for column major would be 100+2(5+i)+22(j-3)

So A[0][8]= 100+2(5+0)+22(8-3)=100+10+110=220
Answer:

Related questions

2 votes
2 votes
3 answers
1
Nitesh_Yadav asked Jul 2, 2022
1,983 views
An array VAL[1..15][1..10] is stored in the memory with each element requiring 4 bytes of storage. If the base address of array VAL is 1500, determine the location of VAL...
2 votes
2 votes
1 answer
2
Beyonder asked Dec 20, 2017
2,022 views
Consider a lower triangular Matrix A[-25....+25, -25....+25], base address (BA)=0, size of element = 100 Byte. Find the location of a [-20][-21] (Ordering: Row Major)?
2 votes
2 votes
4 answers
3
iarnav asked May 8, 2017
2,473 views
char * a[] = "red shoes";How the space in string constant "red shoes" will be stored in 1-D array in memory?
5 votes
5 votes
6 answers
4
Pankaj Joshi asked Jan 26, 2017
15,752 views
Consider 3 dimensional Array A[90] [30] [40] stored in linear array in column major order. If the base address starts at 10. The location of A[20] [20] [30] is __________...