Application of Linked List-Polynomial Manipulation
Application of Linked List-Polynomial Manipulation
MANIPULATION
struct Node
{
int coeff;
int pow;
struct Node *next;
};
else
{
poly->pow = poly1->pow;
APPLICATION OF LINKED LIST-POLYNOMIAL
MANIPULATION
poly->coeff = poly1->coeff+poly2->coeff;
poly1 = poly1->next;
poly2 = poly2->next;
}
// Driver program
int main()
{
struct Node *poly1 = NULL, *poly2 = NULL, *poly =
NULL;