Question: C program to create a doubly linked list. Add 3 elements from the beginning of the linked list. Display the elements of the resulting doubly
C program to create a doubly linked list. Add 3 elements from the beginning of the linked list. Display the elements of the resulting doubly linked list in reverse order.
below is the list of sample input and output.
--- Input --- > 84 19 32 45 25 39 -999 > -5 -12 -68
--- Expected output (numbers)--- 39 25 45 32 19 84 -5 -12 -68
_________________________________________ --- Input --- 84 19 32 45 25 39 -999 0 12 --- Expected output (text)--- Error!! Three elements must be inserted.
________________________________________
--- Input --- -999 59 -8 56 --- Expected output (numbers)--- 59 -8 56
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
