std::string::push_back() in C++
The push_back() member function is provided to append characters. Appends character c to the end of the string, increasing its length by one.
void string:: push_back (char c) Parameters: Character which to be appended. Return value: None Error: throws length_error if the resulting size exceeds the maximum number of characters(max_size).
Original String : Geeksfor After push_back : GeeksforGeeks
This article is contributed by Sakshi Tiwari. If you like GeeksforGeeks(We know you do!) and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.