MediumScenarioMemory management and RAII
A function returns a reference to a local variable and works in tests. Why is this dangerous?
This answer is part of Pro
10 of 81 C++ Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousA program crashes intermittently with corrupted data. How do you debug?Next You need to manage a C library handle safely. How?