InterviewSolution
Saved Bookmarks
| 1. |
An array A[30][10] is stored in the memory with each element requiring 4 bytes of storage ,if the base address of A is 4500 ,Find out memory locations of A[12][8], if the content is stored along the row. |
|
Answer» Loc of A[12][8]= B+W*(N*(I-LBR)+(J-LBC)) =4500+4*(10*12+8) = 4500 4*(128) =4500 + 512 = 5012 |
|