Multidimensional arrays memory storage overview

前端 未结 4 1584
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 05:01

Lately I started learning pointers and references in c++ (not just the usual use of them,but all kinds of ways,I don\'t want to have problems with them in near future).

4条回答
  •  我在风中等你
    2021-01-28 05:34

    &t is taking the address of the pointer t, not the address of the first element. The address of the first element is just t (as t is an int*, which points to the block of memory).

提交回复
热议问题