【问题描述】编写算法函数:创建无头结点的单链表并输出。
【输入形式】输入若干个整数以“-1”作为结束标志,整数之间以空格作为分隔符,创建单链表。
【输出形式】输出单链表值,值以一个空格作为分隔符,另一行输出链表长度。
【样例输入】1 2 3 4 5 -1
【样例输出】5 4 3 2 1
5
#include<stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node* next;
};
struct node* create();
void out(struct node* head);
int len(struct node* head);
int main