[code:1]
#include <stdio.h>
#include <stdlib.h>
#define IS_FULL(temp) (!(temp))
typedef struct poly_node *poly_pointer;
struct poly_node{
int coef;
int exp;
poly_pointer link;
};
void attach(int coef, int exp, poly_pointer *ptr);
void main(void){
poly_pointer a = NULL, b = NULL, c = NULL;
int coef, exp;
printf("Input poly1(if coef is '0' then end): ");
while(1){
printf("coef: "); scanf("%d", &coef);