Answers for "creating lists in C"

-1

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;
}
Posted by: Guest on May-24-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language