I understand that it's undefined to return a reference to a local variable for a function, like:
int& returnIntRef_One()
{
    int value = 5;
    return value;
}
But, in this function:
int& returnIntRef_Two()
{
    int i = 5;
    int &value =i;
    return value;
}
The value seems to be returned fine.
Can someone please explain me what's the difference?
Thank you
 
     
    