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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章