char const *p1 = sv.c_str(); puts(p1); // All ok here char const *p2 = sv.c_str(); // p1 now invalid puts(p1); // Bad things happen here