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 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
Get step-by-step solutions from verified subject matter experts
