Re: [問題] 請問C語言中的int&*

看板Programming作者 ((short)(-15074))時間15年前 (2008/09/18 02:17), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串2/7 (看更多)
※ 引述《esa721.bbs@bbs.cs.nctu.edu.tw (嘎明)》之銘言: : 前幾天上課時教授提到 : C語言中的int&*是不存在的 : 到現在還是不太了解 : 請問有大神可以幫我解答嗎 : 感謝 m(_ _)m 我們來比較一下存在的int*&和不存在的int&* 讀法是由右邊讀回來 int*& => a reference of a pointer (pointed) to an int 'int的指標'的參照 int&* => a pointer (pointed) to a reference of an int 指向'int參照'的指標 這樣看就知道了 '指向參照的指標'這是啥東西? 所以沒有這種東西 而指標的參照則是有意義的 -- 'You've sort of made up for it tonight,' said Harry. 'Getting the sword. Finishing the Horcrux. Saving my life.' 'That makes me sound a lot cooler then I was,' Ron mumbled. 'Stuff like that always sounds cooler then it really was,' said Harry. 'I've been trying to tell you that for years.' -- Harry Potter and the Deathly Hollows, P.308 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.30.84

09/18 22:26, , 1F
C裏頭沒有reference吧... 應該是C++
09/18 22:26, 1F

11/29 15:54, , 2F
c 和 c++ 的 指標 參照 語法一樣阿
11/29 15:54, 2F

11/29 15:54, , 3F
怎麼會沒有呢...
11/29 15:54, 3F
文章代碼(AID): #18qKclDK (Programming)
討論串 (同標題文章)
文章代碼(AID): #18qKclDK (Programming)