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"
Please help, it seems like such a simple program. I copied it right out of a C book. Thank you
#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"
Please help, it seems like such a simple program. I copied it right out of a C book. Thank you