CSD201_-_1_-_FA_2023_-_FE_1030.webp
H

CSD201_-_1_-_FA_2023_-_FE_1030.webp

(Choose 1 answer)
Consider the fun() method in a singly linked list below:
void fun(){ if (isEmpty()) return;if (head == tail)head = tail = null;else head = head.next;
} Specify the correct statement about the fun() method in the code above (choose the most suitable one).
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


Exit 38

Thông tin

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

Image metadata

Filename
CSD201_-_1_-_FA_2023_-_FE_1030.webp
File size
53.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom