Why not Printout(c, 2*n)? You don't have the +1 on any of the other calls to Printout.
Type: Posts; User: tabstop
Why not Printout(c, 2*n)? You don't have the +1 on any of the other calls to Printout.
Yeah, okay, so that's enough room. There's still no need to do malloc every time, because you don't want to do malloc every time. If you multiply two degree-five polynomials together, you will do...
Insert appears to be one huge memory leak. (Why malloc a new node every single time, when most of the time you don't need to?)
Also x^5 * x^5 = x^10, which doesn't fit, and I don't see you...