#include <iostream> #include <string> using namespace std; const string &foo(const string &s) { return s; } int main() { const string &res = foo("abc"); // 1 cout << res << endl; return 0; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment