View Single Post
  #7 (permalink)  
Old 01-13-2007, 03:22 PM
cockeyedcowboy's Avatar
cockeyedcowboy cockeyedcowboy is offline
Senior Member
 
Join Date: Nov 2005
Posts: 298
cockeyedcowboy is on a distinguished road
Quote:
Originally Posted by codersguru
charliev,

You can not return an ARRAY the way you wrote your code:

To return an array use code like this:

PHP Code:
void function_name (doubleMyArray[], double var)
{
//Fill MyArray with the elements you want.
//Don't use RETURN keyword


Dont forget to declare the MyArray[] as a global array as your passing it by referance to the function.
Reply With Quote