Thanks for the reply Dave,
I put in the code you recommended. Still gives the same error though. Shouldn't it still compile even when main is not doing anything? I believe the beginning is valid code. That's why I thought it might have something to do with the Borland compiler. Thanks in...
Just started using Borland C compiler. I am trying to compile a simple program:
#include <stdio.h>
#include <math.h>
main()
void timestwo(double y[], double x[])
{
y [0]= 2.0 * x[0];
return;
}
... I keep receiving the error:
"Error 2141 timestwo.c 6: Declaration syntax Error"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.