Question: Give the accessing formula for computing the memory location of component A[I, J] of a 2-dimension array A which is declared as: Integer A[L1..L2, U1..U2],

 Give the accessing formula for computing the memory location of component

Give the accessing formula for computing the memory location of component A[I, J] of a 2-dimension array A which is declared as: Integer A[L1..L2, U1..U2], L1 lessthanorequalto I lessthanorequalto L2, U1 lessthanorequalto J lessthanorequalto U2. Assume that array A is stored in column-major order, the starting address of A in memory is P, and the size of an integer value is 2 bytes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!