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 are protected members in c++?

1070


What is the difference between prefix and postfix versions of operator++()?

1021


Explain deep copy?

991


What jobs can you get with a c++ certification?

984


When is the copy constructor called?

1083


What is == in programming?

969


What is #include c++?

1039


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3785


What is the history of c++?

994


Write about a nested class and mention its use?

1043


What does ios :: app do in c++?

960


Is rust better than c++?

1054


Can a function take variable length arguments, if yes, how?

955


Can non-public members of another instance of the class be retrieved by the method of the same class?

1026


How can virtual functions in c++ be implemented?

1054