<分区>
Possible Duplicate:
Difference between pointer variable and reference variable in C++
我试图找出使用指针和引用之间的最大区别。它是否类似于堆栈对象的引用然后是堆的指针?但是你不能在堆栈上有指针吗?
标签 c++
<分区>
Possible Duplicate:
Difference between pointer variable and reference variable in C++
我试图找出使用指针和引用之间的最大区别。它是否类似于堆栈对象的引用然后是堆的指针?但是你不能在堆栈上有指针吗?
最佳答案
这里有很棒的资源 What are the differences between a pointer variable and a reference variable in C++?
区别实际上仅在于使用的语法。
关于c++ - 指针和引用的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5608366/