forward_list Question 4

Last Updated :
Discuss
Comments

What happens if you call pop_back() on a forward_list?

Removes the last element

Undefined behavior

Runtime error

Compilation error

Share your thoughts in the comments