creating lists in C code example
Example: creating lists in C
typedef struct node{
int x;
struct node *next;
}node;
node *create_node(int x){
node *new_node = malloc(sizeof(node));
new_node->x = x;
new_node->next = NULL;
return new_node;
}