What are the differences between a pointer variable and a reference variable in C++?

問題:

I know references are syntactic sugar, so code is easier to read and write.我知道引用是語法糖,所以代碼更容易閱讀和編寫。

But what is the difference between a pointer variable and a reference variable?但是指針變量和引用變量有什麼區別呢?


解決方案:

參考一: https://en.stackoom.com/question/Ex9參考二: https://stackoom.com/question/Ex9
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章