int& f(){
    int x = 5;
    int& y = x;
    return y;
}
Why does the function above work? How is it possible to return a reference of a local variable which will be lost when of scope?
int& f(){
    int x = 5;
    int& y = x;
    return y;
}
Why does the function above work? How is it possible to return a reference of a local variable which will be lost when of scope?
