C++) What determines Global variable address? Why It is fixed?

前端 未结 0 788
灰色年华
灰色年华 2021-01-25 09:48

Whenever I compile, the memory address of the global variable is fixed.

However, if I turn VS off and turn it on again, the address is changed.

I want to know why.

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