linked list by address c

Solutions on MaxInterview for linked list by address c by the best coders in the world

showing results for - "linked list by address c"
Jovan
14 Nov 2019
1void push(node_t ** head, int val) {
2    node_t * new_node;
3    new_node = (node_t *) malloc(sizeof(node_t));
4
5    new_node->val = val;
6    new_node->next = *head;
7    *head = new_node;
8}
9