Question: Which of the following code segments would correctly remove the first node (and free its memory) from the linked list. Pointers A and B point

Which of the following code segments would correctly remove the first node (and free its memory) from the linked list. Pointers A and B point to the first and second nodes of the linked list respectively. Select all that apply. 1 2 3 4 NULL Data next Data next Data next Data next Head A B Head = Head->next; delete B n Head = B: delete A O delete Head; Head = B; O delete A Head = A->next; Head = Head->next; delete Head
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
