Where are addresses of pointers stored in C?

后端 未结 5 1890
慢半拍i
慢半拍i 2021-02-10 10:01

I\'m learning C and currently learn about pointers. I understand the principle of storing the address of a byte in memory as a variable, which makes it possible to get the byte

5条回答
  •  無奈伤痛
    2021-02-10 10:31

    A variable that is a pointer is still a variable, and acts like any other variable. The compiler knows where the variable is located and how to access its value. It is just that the value happens to be a memory address, that's all.

提交回复
热议问题