Re: [問題] 請問C語言中的int&*
※ 引述《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
09/18 22:26, 1F
→
11/29 15:54, , 2F
11/29 15:54, 2F
→
11/29 15:54, , 3F
11/29 15:54, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 7 篇):