Anda di halaman 1dari 1

DATA STRUCTURE

Assignment 5 - Linked List

Problem 1. Polynomial representation. Suppose we represent a polynomial as follows:


typedef struct PolyNode *PolyPointer; struct PolyNode { float coef; int expon; PolyPointer link; };

You have to implement the followings functions: read a polynomial and store it in a linked list; evaluate a polynomial; add two polynomials; print a polynomial.