Two Dimensional Array Address Calculation Questions
Q1:An array P[50][60] is stored in the memory along the column with each of the element occupying 2 bytes, find out the memory location for the element P[10][20], if the Base Address of the array is 6800.Ans: Given Number of Rows, R=50Number of Columns, C=60Lower Bound of Row, LBr=0Lower Bound of Column, LBc=0size or width …
Two Dimensional Array Address Calculation Questions Read More »