+ 3
Because the variable could be destroyed before the program ends since it's local. When the scope where it lives ends, it is destroyed. What will happen if you use the address or the reference of a non-existent variable? Maybe crash, undefined behavior, or more. We don't know. It's unpredictable.
5th Apr 2020, 3:48 AM
加油 我先下了
加油 我先下了 - avatar