Define scope of a variable.
Answers
Answered by
70
Answer:
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.
Answered by
0
Scope of a variable is defined below :
- The part of the program which we can see and use for our reference is termed as scope of a variable.
- If any part of the particular program is defined then it can easily access a variable and at certain times it's much easier to limit any variable scope to an individual function.
- In other words it denotes the area of a specific source program where the particular variable can be accessed easily.
Similar questions