Right Click to Search

Sunday, January 24, 2025

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 : 
  1. Too many variables , if declared as global , then they remain in the memory till program execution is over
  2. Unprotected data : Data can be modified by any function

Bookmark & Share

Tags / Keywords : | , ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates