QQ1. Write a program in C to accepts two polynomials as input and prints the resultant polynomial due to the addition of input polynomials.
- Polynomials are represented using integer arrays, where `poly[i]` stores the coefficient of xⁱ.
- `MAX_DEGREE` constant determines the maximum degree supported by the array-based representation.
- Polynomial addition involves summing coefficients of terms with identical powers (same array index).
- The degree of the resultant polynomial is determined by the highest degree among the input polynomials.
Answer: Polynomials can be effectively represented in C using arrays, a common data structure concept covered in MCS-021. In this approach, an integer array `poly[i]` stores the coefficient of xⁱ. A `MAX_DEGREE` constant defines the maximum allowed degree, setting the array's size and simplifying term management for addition. To accept input, the program prompts the user for each polynomial's degree and then its coefficients, from x^0 up to the specified degree. For instance, a polynomial like `3x^2 + ...