How Are C Arrays Represented In Memory?

后端 未结 8 707
醉话见心
醉话见心 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:20

    int x[] produces the same result as int* x;

    it's just a pointer

    therefore notations x[i] and *(x + i) produce the same result.

提交回复
热议问题