logo

Crowdly

Browser

Add to Chrome

 Is this code safe? Why? const   std::string& GetGreeting() {      std::strin...

✅ 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;}

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on courses.apriorit.com?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome