Where are addresses of pointers stored in C?

后端 未结 5 2010
慢半拍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条回答
  •  萌比男神i
    2021-02-10 10:33

    From the compilers perspective, whether u declare a pointer or a general variable is just a memory space.When you declare a variable a certain block of memory is allocated to the variable.

    The variable can be any either a general variable or a pointer. So ultimately we have a variables (even pointers are variables only) and they have a memory location.

提交回复
热议问题