You dont really have to worry about returning arrays because they hold values at specific memory locations.
So if you pass your array to a function, it automatically uses the array's memory address.
double tmpA[10][10];void DoSomething(double tmp[10][10]){ // modify the array.}// pass tmpA to the functionDoSomething(tmpA); // tmpA is the address of the first element in the array.
So you really never need to return the array you pass to a function. You could return a value (like 0 or 1) to show if the function was successful or not.
-noix-
In this world gone mad, we won't spank the monkey; the monkey will spank us.
[edited by - noixtirdoe on January 25, 2004 3:26:42 PM] [edited by - noixtirdoe on January 25, 2004 3:27:29 PM]
In this world gone mad, we won't spank the monkey; the monkey will spank us.