Computer Science, asked by katararahulbhairamab, 2 days ago

Add function to insert a node after a node containing specific information. If a node containing specific information is found, the new node to be inserted at the end(append)​

Answers

Answered by s1053vandana4854
1

Answer:

Add a node at the front: (4 steps process)

The new node is always added before the head of the given Linked List. And newly added node becomes the new head of the Linked List. For example, if the given Linked List is 10->15->20->25 and we add an item 5 at the front, then the Linked List becomes 5->10->15->20->25. Let us call the function that adds at the front of the list is a push(). The push() must receive a pointer to the head pointer because the push must change the head pointer to point to the new node (See this)

Explanation:

Similar questions