This example shows how to add two polynomials using C program. We will use here Structure, which is a composite data type, in which we can define all data types under the same name or object. Size of the Structure is determined by computing the size of all data types, plus any internal padding. The key word struct is used to declare the Structure. A Polynomial is a mathematical expression involving a sum of powers in one or more variables multiplied by coefficients.

For example, the addition result of two polynomials 5-2x^2+9x^4 and 6x-7x^2+10x^3 would be 5+6x-9x^2+10x^3+9x^4

The complete example would be as given below

When you run the above program you would see below output

Thanks for reading.

Software Professional, I am passionate to work on web/enterprise application. For more information please go to about me. You can follow on Twitter. You can be a friend on Facebook or Google Plus or Linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.