linked lists

Solutions on MaxInterview for linked lists by the best coders in the world

showing results for - "linked lists"
Sofia
27 Aug 2016
1node_t * head = NULL;
2head = (node_t *) malloc(sizeof(node_t));
3if (head == NULL) {
4    return 1;
5}
6
7head->val = 1;
8head->next = NULL;
9
queries leading to this page
linked listlinked lists