c - Struct Definition on Include Not Recognized -
it must way professor declared typedef s, because haven't run problem yet. i have following (piece) of header file, , accompanying code uses it: polynomial.h - #ifndef polynomial_h_ #define polynomial_h_ struct term { int coef; int exp; struct term *next; }; typedef struct term term; typedef term * polynomial; #endif polynomial.c - #include "polynomial.h" void display(polynomial p) { if (p == null) printf("there no terms in polynomial..."); while (p != null) { // print term if (p.exp > 1) printf(abs(p.coef) + "x^" + p.exp); else if (p.exp == 1) printf(abs(p.coef) + "x"); else printf(p.coef); // print sign of next term, if applies if (p.next != null) { if (p.next->coef > 0) printf(" + "); else printf(" - "); } } } but following every time try access property of struct: error: request...