作者APE36 (PT乡民)
看板Grad-ProbAsk
标题[理工] [DS] 补习班考题计算Array
时间Fri Mar 16 19:26:03 2012
Let A be a two-dimensional array. The address of A[4][2] is 1978 and A[2][3]
is 1986. Assume that each element of A occupies two bytes.
(a)Find the address of A[3][8].
(b)Find the number of rows of A.
以上今日的练习考题
出来题目 脑中一片空白!!
不知道有人可以提供我"完整解法"吗??
感觉这好像很基础~~但是我看讲义好像也没出的那麽细微呀@@
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.39.4.238
1F:→ dt0953825502:想不出公式就用暴力法吧~~这题是column major 03/16 21:58
2F:→ dt0953825502:2byte 2byte 慢慢加就好 03/16 22:00