作者MyConquesT ( )
看板Grad-ProbAsk
標題[商管] 資管 Array求記憶體位置
時間Thu Mar 17 20:18:53 2011
全部題目是這樣:
------------------------------------------------------------------------------
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)
1F:→ MyConquesT:附註一下,row-major & column-major的公式我知道 03/17 20:20
2F:→ MyConquesT:主要問題是這個記憶體位置要怎麼算出來? 03/17 20:20