In C, scope refers to the part of the source code where a variable can be accessed.

Scope and lifetime do not always correlate. Only for variables with automatic storage duration is the lifetime of the underlying object tied to the scope of the variable.

See Also