[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);
int main(void){
poly_pointer a = NULL, b = NULL;
int coef, exp;
printf("Input poly1(if coef is '0' then end): ");
do{
printf("coef: "); scanf("%d", &coef);
if(coef == 0)
break;