CodePudding user response:
You have to sort out a pointer and the relationship between the nodes,In addition, these concepts come from where, the flank have what you need, as well as the other,
CodePudding user response:
The meaning of the original poster is the tail interpolation to create linked list;* create_link XXX ()
{
XXX * tail, * the head;
The head=* (XXX) malloc (sizeof (XXX));
if (! The head)
exit(0);
Tail=head;
While ()
{
* p=(XXX) malloc (sizeof (XXX));
The scanf (XXX);
Tail - & gt; Next=p;
Tail=p;
}
Tail - & gt; Next=NULL;
return head;
}
For your reference ~
CodePudding user response:
To clarify first pointer and linked list