What is the meaning of cout<<L2.back(); in this linked list code

why do we need to write “back” with the name of the list in this code at line no.27…? what is the function of this word back in this?

hi @Anku47 are you familiar with the list STL? You can check it out here: http://www.cplusplus.com/reference/list/list/back/

i know that L2 means the list name but what is the purpose of word back here?

hi @Anku47 please go through the link I provided above, its the documentation of “back” function. Let me know if you dont understand anything in the documentation.