Skip to content
Prev 343494 / 398525 Next

problem when I Call C subfunction in void function

On Thu, Aug 28, 2014 at 3:36 AM, eguichard <elie.guichard at inserm.fr> wrote:
*Px is a single double, the same as Px[0]
This is more clearly written as
          res[0] = essai(Px, tailleP);

It sets the first element of res to the double returned by essai()

If you want essai() to modify all the elements of the array that res
points to, you need to pass res to the function.