Question: s. C0p) We use the following cell structure to store the IDs and names of some students in a single linked list data structure typedet


s. C0p) We use the following cell structure to store the IDs and names of some students in a single linked list data structure typedet struct cell int ID2 char name [201 struet cell next.i cellt. "cellPEET Suppose somehow we have created the following two single linked lists, namely M and S, to store the Ds and names of the students who are taking Math and Science, respectively. Lists are sorted w.r.t. IDs TK A. Z P T NULL 14 WA NULL N K TK z E -??" Now we are asked to write a function that removes/eliminates the common students from both lists such that each list will only contain the students who are not in the other list. After calling your function, the resulting lists M and S should be as follows (still sorted w.r.t. IDs). A Z 14 WA NULL N K Z E implement a function, void remove common_ students (cel1T "ptrM, cellt which can be called as follows to remove/eliminate the common students from both lists ptrs), /. somehow the lists pointed by M and s are created ./ remove common students(&M, &S): After your function, M and S should be changed as you need to remove the common cells from M and S use the next page to answer question 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
