How to pass a 2D array by reference? Can somebody guide me?
if I created an array as follows:
char **sarray;
2Darray = new char* [row];
for(i=0; i<row; i++)
2Darray = new char[col];
(NOTE: I get the values of row and colume via some calculations in my code ....basically, I am gathering values from a text file into and placing it in a 2D array... so each text file may result in diff row & colume sizes)
I got the 2D array I need...now I want to pass it by reference to another function. How to do that?