|
From: Scott W. <se...@al...> - 2002-10-31 21:37:40
|
Hi, You've all been so helpful, I'm back for more . . . I'm curious about the use of the "const" qualifier as it applies to prototyping function arguments. In particular, suppose I have a function: double myfunc(double x, double *y) where myfunc uses the values of x and the array members of y but doesn't change them. Is there then an efficiency (speed) to be gained by instead declaring: double myfunc(const double x, const double *y)? Are there other advantages/disadvantages? Thanks, Scott |