Answers for "how to pass 2d dynamic array in function c++"

C++
21

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

Code answers related to "how to pass 2d dynamic array in function c++"

Browse Popular Code Answers by Language