ple Choices
(Choose 1 answer)
list (i.e. p.info=9):
Suppose a doubly linked list of integers is given below and p is a reference to the node with value 9 in the
(head) 7 11 6 4 3 9 8 2 (tail)
What does the list look like after the following java code snippet is run?
int x = 5;Node p1, p2;
p1 = new Node(x);
p2 = p.next;
p.next = p1; p1.prev = p;
p1.next = p2; p2.prev = p1;
A. 7 11 6 439 825
B. 7 11 6 43 598 2
C. 7 11 6 4 3 9 5 8 2
D. 7 5 11 6 4 398 2
Ε. 5 7 11 6 439 82
I want to nisin the exam.
35