Math, asked by venusdemor3326, 1 year ago

An array p[20][30] is stored in the memory along the column with each of the element occupying 4 bytes,find out the base address of the array, if an element p[2][20] is stored at the memory location 5000

Answers

Answered by AtomicBlonde
4
5000-(20*4*3)=4760
20, the no of elements each row.
4, size of an element
3, no of rows we have to traverse to reach position [0][0].
Similar questions