Questions about Linked Lists?

addPolynomials function

addPolynomials function

by Ahmad AlLakeas -
Number of replies: 1
Picture of GroupEn

why is the resultant polynomial in reverse order? is it ok or I need to print it in the same order of the 2 polynomials?

also about the addPolynomials2

//if the result is 0  (5x^2-5x^2)  I should free it right? // I realized here that I should not push the term in the first place.

 

 

 

In reply to Ahmad AlLakeas

Re: addPolynomials function

by Ahmad AlLakeas -
Picture of GroupEn
https://pastebin.com/ctHKd1rN

this till now my function of addpolynomial2 it keeps entering in an infinite loop and I have no idea why