cpp/memory/understanding_of_pointers #25
Replies: 2 comments 2 replies
-
tql,我真的吹爆,看着是享受 |
Beta Was this translation helpful? Give feedback.
0 replies
-
大佬, 有个疑问. 假如我创建了个 Class A的指针 ptrA, 用ptrA指Class B的对象 应该会报错吧, 所以 C++的指针除了包含一个地址外, 是不是还有一套机制用来判断类型. 因为很多教程里大家都说指针就是保存地址的变量, 都不怎么说指针类型的事情. |
Beta Was this translation helpful? Give feedback.
2 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/understanding_of_pointers
编程指北: 计算机系统学习指南, 操作系统, 计算机网络, C++, Java, 算法, 数据结构
https://csguide.cn/cpp/memory/understanding_of_pointers.html
Beta Was this translation helpful? Give feedback.
All reactions