This is the code before ANSI. I'm not sure if the gcc compiler supports it, and in any case, using it is bad. Change your function to:
double x_plus_one( double x) {
x = x + 1;
return (x);
}
and you will need to declare it as:
double x_plus_one( double x);
You can also try compiling with the -traditional flag , but I have not tested this.
anon
source
share