Computer Science, asked by Yshnu7310, 1 year ago

What do you mean by scope of a variable?

Answers

Answered by durekhan123
2

A scope is a region of the program and broadly speaking there are three places, where variables can be declared − Inside a function or a block which is called local variables, In the definition of function parameters which is called formal parameters. Outside of all functions which is called global variables.

Answered by xxsanshkiritixx
2

Scope refers to the visibility of variables. In other words, which parts of your program can see or use it. Normally, every variable has a global scope. Once defined, every part of your program can access a variable.

Similar questions