Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between static global and global?

Answer Posted / sandeep gautham

a program can be spread across two or more files...
so, a global variable can be accessed by all the files..
where as, a static global variable can be accessed only by
the file in which it is declared...static means permanent
and hence the value in static global variable is shared by
all the functions in that file...

Is This Answer Correct ?    35 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what does the following statement mean? int (*a)[4]

1078


What is ios in c++?

1220


Is linux written in c or c++?

1045


What is the main function c++?

1124


What is the best free c++ compiler for windows?

1110


Is java made in c++?

1064


How is static data member similar to a global variable?

1119


How do you compile the source code with your compiler?

1057


How do you clear a buffer in c++?

963


What does h mean in maths?

1204


What are virtual functions in c++?

1183


Why should you learn c++?

1021


Why do we need c++?

1056


What is the use of string in c++?

1029


What is the difference between a baller and a reference in C++?

1121