Question: Write a C Program for the following: Create a doubly linked list. Use -999 to stop entering the elements. Delete 3 elements from the end

Write a C Program for the following:

Create a doubly linked list. Use -999 to stop entering the elements.

Delete 3 elements from the end of the linked list. Display the elements of the resulting doubly linked list in reverse order.

Sample Input/Output

Input 84 19 32 45 25 39 -999

Output 32 19 84

Input 48 20 23 45 25 39 -999 Output 23 20 48 ________________________ Input 45 25 39 48 20 23 -999 Output 39 25 45

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!