dynamic allocating array of arrays in C

后端 未结 7 783
南笙
南笙 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.

    0 讨论(0)
提交回复
热议问题