Is primitive assigned a memory address?

后端 未结 4 2062

I am trying to understand the process of declaration and assignment of a primitive type at the back stage.

  1. int i;
  2. i = 3;
4条回答
  •  孤街浪徒
    2021-01-12 17:20

    Really stack is special area of proccess virtual memory, so everything in stack has memory addres. Head of the stack holded by ESP (SP) registry (x86 architecture). Stack addresses usualy lower than memory adresses, because stack located closer to begining of proccess vitrual memory then heap.

提交回复
热议问题