A global variable is also known as__variable.
Answers
Answered by
1
Answer:
In computer programming, a global variable is a variable with global scope, meaning that it is visible (hence accessible) throughout the program, unless shadowed. The set of all global variables is known as the global environment or global state
Answered by
3
A global variable is also known as a class variable.
- A global variable is a variable that is declared immediately after creating the class, that is, before creating any function.
- The scope of the global variable lies within a class.
- Any function can access a global variable.
- A global variable is used so that multiple functions can use a variable.
Similar questions