Questions about Linked Lists?

addPolynomials function

addPolynomials function

par Ahmad AlLakeas,
Nombre de réponses : 1
Avatar 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.

 

 

 

En réponse à Ahmad AlLakeas

Re: addPolynomials function

par Ahmad AlLakeas,
Avatar 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