📜  追加到列表中 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:33.930000             🧑  作者: Mango

代码示例1
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;
}