My Sketch Book
Here are some experiments , tests or notes about everything in my life.
(其實是雜物堆)
2008-03-25
指標的運算
Ref:http://caterpillar.onlyfun.net/Gossip/CppGossip/CppGossip.html
指標的加法與減法與一般數值的加減法不同,
在指標運算上加 1 ,是表示前進一個資料型態的記憶體長度,
例如在int型態的指標上加1,是表示在記憶體位址上前進4個位元組的長度
--
齁 明明知道的阿
究竟在想什麼 Orz
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment