A two-dimensional array P[20] [50] is stored in the memory along the row with each of its element occupying 4 bytes, find the address of the element [10] [30], if the element P[5] [5] is stored at the memory location 15000.
LOC(P[10][30])
= Loc(P[5][5])+ W[(ILBR)*C+(JLBC)]
= 15000 + 4[(105)*50 + (305)]
= 15000 + 4[ 5*50 + 25]
= 15000 + 4 *275
= 15000 + 1100
= 16100