すみません、間違えました。実際には以下のコードです

const std::string get() {
 return std::string("ABC");
}

void main() {
 const std::string &s = get();
 printf("%s", s.c_str()); // ←どうなる?
}