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

Does improper inheritance have a potential to wreck a project?

1088


Describe Trees using C++ with an example.

1091


Write a program which uses functions like strcmp(), strcpy()? etc

1046


What are features of c++?

1107


Should you pass exceptions by value or by reference?

1090


What is c++ code?

1074


What do you mean by late binding?

1058


Tell me what are static member functions?

1038


How can you quickly find the number of elements stored in a static array?

1056


What is object in c++ example?

1045


What is jump statement in C++?

1058


What kind of problems can be solved by a namespace?

1015


What is functions syntax in c++?

1073


What are signs of manipulation?

1015


Describe delete operator?

1041