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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started