how do you connect to separate nodes that is singly
like if you have a node as headp
a - link -> b->link
and connect to a node as temp
c-link
so that it will produce
a-link->b-link->c-link->
a code in c is much appreciated
Thanks
how do you connect to separate nodes that is singly
like if you have a node as headp
a - link -> b->link
and connect to a node as temp
c-link
so that it will produce
a-link->b-link->c-link->
a code in c is much appreciated
Thanks
Here's the basic idea, minus error handling.
-PreludeCode:void addNext ( struct node *list, struct node *newNode ) { newNode->next = list->next; list->next = newNode; }
My best code is written with the delete key.