Skip to content

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.

More on Memory management and RAII

Flashcards for this topic