Question: C program Create a function: struct student *eraseStudent(struct student *alumnus, struct student *head) which takes a pointer alumnus to an element of the linked list

C program

Create a function: struct student *eraseStudent(struct student *alumnus, struct student *head) which takes a pointer alumnus to an element of the linked list starting at head, and removes the element from the linked list. The function return a pointer to the new head of the list. Print the list before and after the elimination of a student, to verify that it worked. Hint: to obtain a pointer to an element of the list, use the function findStudent.

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!