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
Get step-by-step solutions from verified subject matter experts
