have a code in 1.c file and the definition is in 1.h file
example
1.h
double option (const double& S, const double& K, const double& r,
const double& sigma, const double& time) ;
when i complie the c file iam getting the following erros;
In file included from 1.c:1:
1.h:3: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
1.h:5: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token
may be my problem is with parameters.
is it right way to declare "const double& S".
thank u
sree