Computer Science, asked by sohelbagwan9378, 9 months ago

Which variables have global scope?

Answers

Answered by anamkhurshid29
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 letmeanswer12
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