Chapter 3: Problem 11
What is a variable's scope?
Short Answer
Expert verified
#tag_content# Variable scope refers to the portion of a program where a variable is accessible, determining where it can be used, viewed, and modified within the program. There are two primary types of variable scope: global scope and local scope. Global scope means that the variable is accessible throughout the entire program, while local scope means that the variable is accessible only within a specific portion of the program, such as within a function or a code block.