开发者

Differences between pointer and by reference [duplicate]

开发者 https://www.devze.com 2023-02-23 14:21 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: 开发者_Python百科Difference between pointer variable and reference variable in C++
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

开发者_Python百科Difference between pointer variable and reference variable in C++

I am trying to figure out what the big difference is between using pointers and references. Is it like reference for stack objects and then pointers for heap? But then can't you have pointer on the stack?


Here's a great resource What are the differences between a pointer variable and a reference variable in C++?

The difference is really only in the syntax used.

0

精彩评论

暂无评论...
验证码 换一张
取 消