1.

Which of the following will return the new element at the end of container?(a) front(b) back(c) push_back(d) pop_backThe question was asked in an international level competition.My question is based upon Sequences topic in chapter Class Hierarchies, Library & Containers of C++

Answer»

The CORRECT option is (b) BACK

The best EXPLANATION: Q3: back() in containers are used to access the last ELEMENT of the SEQUENCE.



Discussion

No Comment Found

Related InterviewSolutions