edited by
288 views

1 Answer

Best answer
2 votes
2 votes
Column major order = base address + ( column(ask) - min column )* total rows + (rows(ask)- min row)) * size of int

                             = 300+ [(j- 6)*25 + (i-6)] *1

                             = 300 + 25j - 150 + i -6  

                             = 25j + i - 144
selected by

Related questions

1 votes
1 votes
2 answers
1
6 votes
6 votes
0 answers
2
V pandey asked Oct 8, 2022
3,075 views
Consider a multi-dimensional array A [90][30]40] with base address start at 1000, calculate the address of A[10][20][3] in row major order and column major order. Assume ...
1 votes
1 votes
1 answer
3
1 votes
1 votes
1 answer
4
amitarp818 asked Oct 25, 2023
441 views
How is the address written for 3-dimensional arrays?In some answers, I saw (row, column, frame) and in others, it was (frame, row, column) Which one to follow??Also, how ...