Question: Take this general formula: addr ( matrix [ i , j ] ) = p + ( i ps ) + ( j es )
Take this general formula: addrmatrixijpipsjes
for a origin array where es element size, ps pointer size, matrix is the name of array, I is row and j is column to be accessed, and the base address of the array is p Modify it but allow for the lower bound of each dimension to be other than origin. So instead of arrayup; up the bounds would be arraylbup;lbup
from there, assuming a matrix declaration var aMatrix : array ; and p ps es get the address of aMatrix
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
