pop off end of string c 2b 2b

Solutions on MaxInterview for pop off end of string c 2b 2b by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "pop off end of string c 2b 2b"
Hortense
03 May 2016
1#include <string>
2
3int main() {
4 std::string str = "Hello, World!";
5 str.pop_back(); // str is now "Hello, World"
6}