I have the following code, the struct declaration is before the main, so is the function declaration
struct stuff{
int sale_per_day[Kdays];
int max_sale;
};
void set_max();
and that part is in the end…
void set_max(struct stuff *point; int n = 0)
{
return;
}
Now what exactly am I doing wrong? I get the
“ISO C forbids forward parameter declaration”
error. I am working with GCC C89 as per the course demands.
It looks as if it just needs a comma instead of a semicolon: