There are three situation for inserting element in list.
1.Insertion at the front of list.
2.Insertion in the middle of the list.
3.Insertion at the end of the list.
Insertion at the beginning of doubly linked list
Insertion in the location of doubly linked list
Insertion at last of doubly linked list
scanftree is optimized for learning, testing. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.