Deletion at beginningDeletion in doubly linked list at the beginning is the simplest operation. We just need to copy the head pointer to pointer ptr and shift the head pointer to its next. now make the prev of this new head node point to NULL. This will be done by using the following statements. Now free the pointer ptr by using the free function. Algorithm
WRITE UNDERFLOW C FunctionOutput 1.Append List 2.Delete node from beginning 3.Exit 4.Enter your choice?1 Enter the item 12 Node Inserted 1.Append List 2.Delete node from beginning 3.Exit 4.Enter your choice?2 Node Deleted 1.Append List 2.Delete node from beginning 3.Exit 4.Enter your choice? Next TopicDoubly Linked List |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India