C++ List push_back()C++ List push_back() inserts a new element at the end of the list and the size of the list container increases by one. push_back() function inserts element 5 at the end. SyntaxSuppose a element is 'x': Parameterx: It is the value to be inserted at the end. Return valueIt does not return any value. Example 1Let's see a simple example Output: C C++ .Net java PHP In this example, push_back() function inserts two strings i.e java and PHP at the end of the list. Example 2Let's see a simple example Output: 6,7,8,9,10,11 Next Topicpush_front() Function |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India