✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Is this code safe? Why?const std::string& GetGreeting(){ std::string s = "Hello"; return s;} int main(){ const std::string& ref = GetGreeting(); std::cout << ref;}