Which variables have global scope?
Answers
Answered by
0
HEYA MATE YOUR ANSWER IS
Variable have global scopes because it is used all over the world and can be used to exchange any kind of data
Answered by
0
Global variables have global scope
Explanation:
- A global variable is a construct of programming language, a type of variable which is declared outside of any function and is accessible in the program to all functions. Throughout the lifetime of the program, global variables retain their values and they can be accessed through any of the functions specified for the program.
- Global variables remain in memory throughout the run-time of the program. It ensures that they can be modified by any function at any stage and can influence the system as a whole.
Similar questions
Computer Science,
11 months ago
English,
1 year ago