18.7k views
3 votes
In the STL container list, the functionpop_front does which of the following?

a. inserts element at the beginning of the list

b. inserts element at the end of the list

c. returns the first element

d. removes the last element from the list

1 Answer

2 votes

Answer: Returns the first element

Step-by-step explanation:

The functionpop_front always gives us the first element as it removes the first element from the front of the list.

User Herschel
by
4.8k points