Home > other >  Create a list node
Create a list node

Time:10-20

P=the head;
P=(*) the malloc...
P - & gt; Next=head;
The head=p;

This is how to create nodes

CodePudding user response:

This is backwards to create linked list, each new malloc nodes are added to the head, so that the resulting list is according to create in reversed order
  • Related