Question: programing in c language 5. Write functions which perform according to the following descriptions. The input to each function is a doubly circular linked list

programing in c language
5. Write functions which perform according to the following descriptions. The input to each function is a doubly circular linked list of characters.
a) delete
- Deletes all the input character in the linked list.
e.g.) delete(lst, b) where lst is an pointer to a linked list and b is a character.
b) insert
- Inserts a character to the linked list.
e.g.) insert(lst, b)
c) printfb
- pirnts the content of the linked list both forward and backward.
e.g.) printfb(lst)
Test the functions as shown below.
1) Construct the linked list from a set of characters {j k l r s r t s k u r n j} that is stored in an array.
2) Then randomly select one character from the set and delete this character(s) from the linked list. ?Use rand() function (execute srand(time(NULL)) first).
3) Print the content of the linked list.
4) Repeat 2) and 3) two more times.
 programing in c language 5. Write functions which perform according to

5. Write functions which perform according to the following descriptions. The input to each function is a doubly circular linked list of characters. a) delete - Deletes a the input character in the linked list e.g.) delete(lst, b) where Ist is an pointer to a linked list and b is a character. b) insert - Inserts a character to the linked list. e.g.) insert(lst, b) c) printfb pirnts the content of the linked list both forward and backward. e.g.) printfb(lst) Test the functions as shown below. 1) Construct the linked list from a set of characters kIrsrtskurnj that is stored in an array 2) Then randomly select one character from the set and delete this character(s) from the linked list.Use 3) Print the content of the linked list 4) Repeat 2) and 3) two more times rand() function (execute srand(time(NULL)) first)

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!