Disadvantages of File scope / Global Variable in C Programming
Disadvantages of File scope / Global Variable in C Programming
Definition :
Variable is said to have global scope / file scope if it is defined outside the function and whose visibility is entire program
Disadvantages of Global Variables :
- Too many variables , if declared as global , then they remain in the memory till program execution is over
- Unprotected data : Data can be modified by any function
