int arr[2] [4]={{2,3,4,5},{6,7,8,9}};
假設[0][0]的位址為1200,試回答下列各題:
(a)arr的值為何?
(b)arr[0] 與 arr[1] 的值為何?
(c)arr+1 的值為何?
(d)*(arr+0) 與 *(arr+1) 的值為何?
(e)*(arr+1)+0 與 *(arr+1)+1 與 *(arr+1)+2 與 *(arr+1)+3 的值為何?
(f)*(*(arr+1)+0) 與 *(*(arr+1)+1) 與 *(*(arr+1)+2) 與 *(*(arr+1)+3) 的值為何?
(g)試撰寫一程式碼, 用來驗證(a)~(f) 小題裡美一項的數據
(h)繪出本例中, 陣列arr元素於記憶體內的配置圖, 記憶體位址請用(g)小題所求得的
真實位置
期末考題目 麻煩大大幫忙解答 感恩~~
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html