Answers for "how to make a n*n 2d dynamic array in c++"

C++
10

how to make a n*n 2d dynamic array in 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

Browse Popular Code Answers by Language