...

/

Local vs. Global Scope

Local vs. Global Scope

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

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!

Access this course and 1400+ top-rated courses and projects.