开发者

Differences between pointer and by reference [duplicate]

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜