I have this 2d dynamic array and I want to pass it to a function, How would I go about doing that
int ** board; board = new int*[boardsize];
You should define a function to take this kind of argument
void func(int **board) { for (int i=0; i
If boardsize or size are not globlal, you can pass it through parameters.
boardsize
size
void func(int **board, int boardsize, int size) { for (int i=0; i