Code AnalysisBeginner 60s
Returning reference to local
What is the defect in this code?
Starter code
const std::string& get_name() {
std::string s = "alice";
return s;
}Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.