[商管] [資管] [Array]求記憶體位置

看板Grad-ProbAsk作者 ( )時間14年前 (2011/03/17 20:18), 編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
全部題目是這樣: ------------------------------------------------------------------------------ Given a four dimensional integer array A(3,4,5,6), and its data is stroed sequentially starting from memory address A0F0:0100. Assume an integer occupies 4 bytes. (a) Find the address of element A(1,2,3,4) for the row-major order and for the column-major order. (b) Why most of the computer languages use row-major? ------------------------------------------------------------------------------ 想請問一下這兩題的答案和過程,麻煩各位先進了... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.193.140.152 ※ 編輯: MyConquesT 來自: 123.193.140.152 (03/17 20:19)

03/17 20:20, , 1F
附註一下,row-major & column-major的公式我知道
03/17 20:20, 1F

03/17 20:20, , 2F
主要問題是這個記憶體位置要怎麼算出來?
03/17 20:20, 2F
文章代碼(AID): #1DWVmo18 (Grad-ProbAsk)