1205-链表:遍历打印

/**
 * 遍历打印
 */
void print(LinkList list) 
{
    if (list == NULL)
        printf("param error!\n");

    LinkList temp = list->next;
    while (temp != NULL)
    {
        printf("%d, ", temp->data);
        temp = temp->next;
    }
    printf("\n");
}

你可能感兴趣的:(1205-链表:遍历打印)