CSD201_-_SP_2025_-_Block_5_-_1_3848.webp
royal_peace

CSD201_-_SP_2025_-_Block_5_-_1_3848.webp

☑Kizspy.me
(Choose 1 answer)
☐ A
Back
Next
Consider the fun() method in a singly linked list below:
void fun()
{if (isEmpty()) return;
if (head == tail)
head tail null;
else
{Node p1,p; p1=null;p=head;
}
}
while(p!-tail) {p1=p;p=p.next;}
p1.next=null; tail=p1;
Specify the correct statement about the fun() method in the code above (choose the most suitable one).
A. It removes a node at the middle of the list
B. It removes a node at the beginning of the list
C. It removes a node at the end of the list
D. The code does not change the list.
FUO.sh
sh the exam.

Thông tin

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

Share this media

Back
Bên trên Bottom