Answers for "append to list in c"

C
1

append to list in c

void Append(Node *head, Node node){
	Node tmp = *head;
    if(*head == NULL) {
    	*head = node;
      	return;
    }
  	while(tmp->next != NULL){
    	tmp = tmp->next;
  	}
  	tmp->next = node;
  	return;
}
Posted by: Guest on June-02-2020

Code answers related to "C"

Browse Popular Code Answers by Language