What is the difference between sizeof(*ptr) and sizeof(ptr) in the following code?

前端 未结 0 1137
别那么骄傲
别那么骄傲 2021-01-01 00:26

I am studying about pointers in C++. In the following code I have a pointer to an int. I am not able to understand what\'s the difference between sizeof(*ptr) and sizeof(ptr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题