23. Each element of an array X [-15.. 10,15...40] requires one byte of storage. If the array is stored in
column major order with the beginning location 1500, determine the location of X [5,20
(ISC 2007)
Answers
Answered by
3
Answer:
1620
Explanation:
Address in column-major is calculated as
X[I][J]=B+W(I-lr)+R(J-lc)
X[5][15]=1000+4((5-0)+10(15-0))
=1000+4(5+150)
=1000+4(155)
=1000+620
=1620
SPJ3
Similar questions