----- Original Message ----- 
From: "Christopher Coale" <[email protected]>
To: <[email protected]>
Sent: Saturday, July 25, 2009 5:50 PM
Subject: Re: [c-prog] Re: moving average problem

> Well, the short answer, is you can't. You can do it if you use some kind
> of list that keeps the size, otherwise, there is no way to tell where
> the array ends unless you use a sentinel value - but that wouldn't work
> very well with a function like this.

    OK I see. I'm going to alter this function slightly for a geometric mean 
and a type of exponential mean if there is such a thing really. I do have a 
formula.

    Is a sentinel value like here in this std function...

strtlen(length)+1;  The one holding the null terminator character?

Bill

Reply via email to