(Choose 1 answer)
Select the statement that is most correct.
Suppose we are considering a singly linked list and p is some node in the list which has both predecessor and successor nodes. What does the java code snippet below do?Node f = head;
while(f.next != p) f = f.next;
f.next = p.next;
A. It deletes the node p.
B. It deletes the node before p.
C. It deletes the node after p.
D. It does not make any change on the list.
I
Q: 35