Question: Write a program that contains the functions called insertEntry() to insert a new entry into a linked list and removeEntry() to remove an entry from

Write a program that contains the functions called insertEntry() to insert a new entry into a linked list and removeEntry() to remove an entry from a linked list. Have insertEntry() take as arguments a pointer to the list entry to be inserted (of type struct entry as defined in class and below), and a pointer to an element in the list after which the new entry is to be inserted. The sole argument to removeEntry() should be a pointer to the list. Have the function remove the entry after the one pointed to by the argument. Why cant you remove the entry pointed to by the argument? insertEntry() only inserts an element after an existing element in the list, thereby preventing you from inserting a new entry at the front of the list. We overcome this by setting up a special entry structure that points to the beginning of the list, given by nBeginning in the starter code.

use visual studio C, not C++

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!