close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 已解決 
c語言指標式子疑問
Mar 25th 2015, 04:45

你那行 ptr=(int*)array;

沒用到就不要貼出來了...害我看錯...想超久...

如果你原本是要用 ptr來讀寫array 只是又把它變回一維陣列

你只能用 ptr[1]或*(ptr+1)來讀寫array[0][1]
用 ptr[6]或*(ptr+6)來讀寫array[1][2] 以此類推...

以上是補充的....

你的問題 ...

照我上面那樣ptr[1]跟*(ptr+1) 是一樣的 所以你的問題

*((array+1)[1]) 其實就是 *(*(array+1+1)) => **(array+2)
==>*(*(array+2) +0 )==array[2][0]

(*(array+1))[1] 就是 *(*(array+1)+1) ==array[1][1]

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.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kkovdy25d40iq 的頭像
    kkovdy25d40iq

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    kkovdy25d40iq 發表在 痞客邦 留言(0) 人氣()