If the following array is stored as a row and starts from memory address 300, what is the specification of element A[3,4,2] in memory?
Var A: array [1..4,2..5,1..6] of integers;
The array ( A ) has dimensions ([1…4, 2…5, 1…6]).
I Calculate the size of each dimension:
First dimension: ( 4 – 1 + 1 = 4 )
Second dimension: ( 5 – 2 + 1 = 4 )
Third dimension: ( 6 – 1 + 1 = 6 )
I did until here so after that what must I do?
New contributor
safir safir1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.