dynamic allocating array of arrays in C

后端 未结 7 937
南笙
南笙 2020-11-30 04:08

I don\'t truly understand some basic things in C like dynamically allocating array of arrays. I know you can do:

int **m;

in order to decla

7条回答
  •  误落风尘
    2020-11-30 05:06

    It's not a 2d array - it's an array of arrays - thus it needs the multiple allocations.

提交回复
热议问题