When we print the address of variable does it represent the actual physical address or logical address ..
In debug mode (visual studio) same a开发者_如何学编程ddress is shown repeatedly .
When you print the address of a variable it is always the virtual address.
Physical memory is abstracted away from you at a low level in your operating system, during normal operation users and developers will seldom ever be concerned with physical memory.
Learn more about virtual memory from Wikipedia
精彩评论