CSD201_-_SP_2023_-_FE_166.webp
hirosi212

CSD201_-_SP_2023_-_FE_166.webp

23
Multiple choices 23/50
(Choose 1 answer)
Next
Consider the fun() method in a singly linked list below:
void fun()
{ if (isEmpty()) return;
} Specify the correct statement about the fun() method in the code above (choose the most suitable one).
if (head == tail)
head = tail = null;
else head = head.next;
A. It removes the last element of the list
B. It removes the first element of the list
C. It removes the second element of the list
D. It returns the first element of the list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45 46
47
48
49
50

Thông tin

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

Share this media

Back
Bên trên Bottom