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 can pass a pointer to an pointer:
void someFunction(int** board) { }