#include #include struct NODE { char* name; int val; struct NODE* next; }; typedef struct NODE Node; Node *head, *tail; he
You need to put your code inside a function:
#include #include struct NODE { char* name; int val; struct NODE* next; }; typedef struct NODE Node; main(){ Node *head, *tail; head = (Node*) malloc( sizeof( Node ) ); //line 21 }
should work