Right now, I have a polynomial stored as a linked list (struct with element for coeff, element for exponent).
For multiple polynomials, there needs to be a linked list created for each polynomial.
How exactly would I create an array of pointers to these linked lists?
Would I just create an array like
Here's my linked list code:Code:int *Polynomials[MAX];
Thanks.Code:/*Building of Linked List */ m = (struct node*)malloc(sizeof(struct node)); if (first == NULL) { first = m; } if (last == NULL) { last = m ; } else { last -> next = m; last = m; } last -> coeff = Coefficient; last -> power = Exponent; last -> next = NULL;