std::string str = "hello"; str.push_back('!');In this example, the `push_back` function is used to add an exclamation mark character to the end of the string "hello". The resulting value of `str` would be "hello!". Package library: Standard C++ Library