Variables and data objects have certain properties such as visibility, scope, storage, and lifetime. These terms are all closely related, and here, we explain how they affect each other. We describe how names are visible to other names and how much time the data objects spend in memory.
26.1 Scope
When a variable (or a function) is declared, its name is only valid inside some portion/section of a source code. That section of a source code is called a scope. There are different kinds of scopes – local scope and ...