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.

Hi.. no need to answer.. I found the bug..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.