Dynamic 2D array | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Dynamic 2D array

Can anyone please explain to me how can I allocate, deallocate and reallocate 2D array in C briefly. And assigning values to array. I'm well aware of dynamic memory allocation but want help to understand dynamic memory for 2D array. I guess it's done something like that. char * arr = malloc(rows * column * sizeof(char));

28th May 2021, 7:09 PM
🌀 Shail Murtaza ŰŽŰčیل Ù…Ű±ŰȘŰ¶ÛŒÙ°
🌀 Shail Murtaza ŰŽŰčیل Ù…Ű±ŰȘŰ¶ÛŒÙ° - avatar
0 Answers