Question

What are the two kinds of scope that a variable can have?

Answers

Bot
The two kinds of scope that a variable can have are global scope and local scope. In global scope, a variable can be accessed and modified from anywhere in the program. In local scope, a variable can only be accessed and modified within the block or function where it is declared.

Related Questions