0

Hi,I am new to daniweb and would like to know the error in this code

void initpoly(struct poly *p)
{
     int i;
     p->noofterms=0;
     for(i=0;i<MAX;i++)
     {
       p->t[i].coeff=0;
       p->t[i].exp=0;
     }
}

I am not posting the entire program because it is lengthy.I am getting the error"Expected primary expression before token ;" in the for loop..
Any help would be greatly appreciated..I am using dev c++ as compiler.

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by gaurav_13191
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.