Returning an ARRAY from a function - page 2

 
7bit wrote >>
crossy, you cannot use return() to return anything other than one single value.

if you want to return more than one value or an array you have to return it through the argument list. You must use the call-by-reference calling convention for the arguments you want to use for that, so your function can return their values through the argument list instead of return(). If you want to return values in an array you pass the function an empty array by-reference and the function will then be able to write its values directly into this array.


Thankes 7bit
Reason: