标签: c++ pointers variables scope reference
说我有以下C ++代码:
int& Foo() { int a = 5 return a } int main() { int b = Foo() }
return &a
int b