How Are C Arrays Represented In Memory?

后端 未结 8 715
醉话见心
醉话见心 2020-12-14 01:33

I believe I understand how normal variables and pointers are represented in memory if you are using C.

For example, it\'s easy to understand that a pointer Ptr will

8条回答
  •  一向
    一向 (楼主)
    2020-12-14 02:10

    An array in C is a sequential block of memory with each member's block of the same size. This is why pointers work, you seek an offset based on the first member's address.

提交回复
热议问题