I need to do this to persist operations on the matrix as well. Does that mean that it needs to be passed by reference?
Will this suffice?
void operate
2D array:
int sum(int array[][COLS], int rows) { }
3D array:
int sum(int array[][B][C], int A) { }
4D array:
int sum(int array[][B][C][D], int A) { }
and nD array:
int sum(int ar[][B][C][D][E][F].....[N], int A) { }