Answer (Choose 1 answer)
Select the statement that is most correct.
Suppose we are considering a singly linked list which has at least 2 nodes. What does the java code snippet below do?
Node f = head;
while(f.next != tail) f = f.next;
f.next = null;tail = f;
A. It deletes some middle node in the list.
B. It deletes node before the last node.
C. It deletes the last node.
D. It does not make any change on the list.
Exit 26