How does one pass a 2 dimensional array to a function and modify it in the function. I thought I knew this.
For example a function that modifies a one dimensional array is declared as
Code:
void do_something ( double array[]);
// and I can call it with
do_something(array); // for some
double array[10];
Now for an array with 2 rows and 3 columns I have
Code:
double array[2][3];
//define function that takes this as parameter
do_something(double array[][3]);
// dope. How do I call do_something???
do_something(array); // gives wrong answer