Answers for "use 2d dynamic allocation instead of your array"

C++
21

array 2d dynamic allocation c++

int** a = new int*[rowCount];
for(int i = 0; i < rowCount; ++i)
    a[i] = new int[colCount];
Posted by: Guest on April-04-2020

Code answers related to "use 2d dynamic allocation instead of your array"

Browse Popular Code Answers by Language