cpp/memory/difference_of_pointers_and_ref #19
Replies: 5 comments 2 replies
-
北哥,最后总结中的第一条说引用可以看做是常量指针,引用指向不可变也就是指针本身不可变,是不是应该是指针常量? |
Beta Was this translation helpful? Give feedback.
1 reply
-
速成速成,绝大多数都仅仅是速,你这个是真成了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
如何从汇编的角度上分析, p 和 r 打印的地址不同呢?因为汇编的代码一样的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我哭死,居然真的有人和我一样去扒指针和引用的汇编代码,和同学说指针和引用在汇编层面完全一样他们还不信(TvT) |
Beta Was this translation helpful? Give feedback.
1 reply
-
编译器开启优化后引用有可能直接访问原变量 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
cpp/memory/difference_of_pointers_and_ref
编程指北: 计算机系统学习指南, 操作系统, 计算机网络, C++, Java, 算法, 数据结构
https://csguide.cn/cpp/memory/difference_of_pointers_and_ref.html
Beta Was this translation helpful? Give feedback.
All reactions