C pointers and the physical address

前端 未结 11 779
傲寒
傲寒 2020-12-03 15:43

I\'m just starting C. I have read about pointers in various books/tutorials and I understand the basics. But one thing I haven\'t seen explained is what are the numbers.

11条回答
  •  离开以前
    2020-12-03 16:47

    It's the address or location of the memory to which the pointer refers. However, it's best if you regard this as an opaque quantity - you are never interested in the actual value of the pointer, only that to which it refers.

    How the address then relates to physical memory is a service that the system provides and actually varies across systems.

提交回复
热议问题