☑Kizspy.me
(Choose 1 answer)
☐ A
Back
Next
Select the statement that is most correct.
Suppose we are considering a doubly 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 p1,p2; p1 = p.prev; // prev is a link to previous node
p2-p.next; p2.prev = p1;
p1.next = p2;
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.
FUO.sh
sh the exam.