Local vs. Global Scope

Learn about the local and global scopes and get introduced to the structure of an executable file.

We'll cover the following

Scope

The scope of a variable is the code area in which the variable is visible and usable.

The scope is sometimes called the lifetime of the variable. Variables get destroyed when they go out of scope. We’ll explore the exact mechanism behind the process of destroying local variables very soon!

Get hands-on with 1200+ tech skills courses.