C++ · Functions

Scope: where a variable lives

Two functions can both use a variable called x without disturbing each other, and knowing why saves hours of hunting for bugs.