February 2021
Beginner
338 pages
4h 11m
English
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.
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 global scope.
Read now
Unlock full access