Question: In Java matrices [ 2 dimensional arrays ] are stored as single - dimensioned array of pointers ( addresses ) to the rows of the

In Java matrices [2 dimensional arrays] are stored as single-dimensioned array of pointers (addresses) to the rows of the matrix. Each row is treated as a single dimension array of objects. Develop the access formula for such a matrix, assume 0-origin arrays, where es = element size, ps = pointer size, matrix is the name of the array, I is the row and j is the column to be accessed, and the base address of the array is p. Given this scenario, what is the general formula for addr(matrix[i, j])

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 Programming Questions!