CSD201_-_FEB5_-_FA_2023_1291.webp
S

CSD201_-_FEB5_-_FA_2023_1291.webp

(Choose 1 answer)
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 successor node.
What does the java code snippet below do?Node p1,p2; p1 = p.next;
p2 = p1.next;
p.next = p2;
if(p2!=null) p2.prev=p;
A. It does not make any change on the list.
B. It deletes the node before p.
C. It deletes the node p.
D. It deletes the node after p.
vato
fini

17

Thông tin

Category
CSD201
Thêm bởi
silver_moon
Ngày thêm
Lượt xem
3,205
Lượt bình luận
35
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_FEB5_-_FA_2023_1291.webp
File size
46.6 KB
Dimensions
1286px x 626px

Share this media

Back
Bên trên Bottom