[請問] 請問一題Row/Column major的問題已回收
Assume in a byte machine. A is an array declared as
A[-1:m, 2:n] and each element occupied 3 bytes. The
address of A[3,5] ia at 180 and A[5,3] is at 138. Find
the address of the element A[-1,2]
這題想不太出來
我用Row major和Column major算出來的結果不一樣,請問要怎麼判定呢?
還請各位替小弟解惑~謝謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.169.114.214
※ 文章網址: http://www.ptt.cc/bbs/ask/M.1414324942.A.EFD.html
※ 編輯: iloveconic (118.169.114.214), 10/26/2014 20:29:44
推
10/26 20:37, , 1F
10/26 20:37, 1F
感謝你的回答~想在此請問一下是怎麼判定是用Column major的@@
再次麻煩您了!!
→
10/26 20:52, , 2F
10/26 20:52, 2F
了解~感謝您!
※ 編輯: iloveconic (118.169.114.214), 10/26/2014 20:55:45
ask 近期熱門文章
15
32
2
12
7
16
PTT職涯區 即時熱門文章