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 / ravi.g

local static variable and global variable both are same
since both can be accessed from all the functions in the
same file in which they declared.

Global variable has the file scope since it can be accessed
from other files also by using extern keyword.

Local static vaeriables have no file scope since they can
not be accessed from other files by any means.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the this pointer?

1164


What is a string example?

1142


What is virtual base class?

1129


What is the first name of c++?

1105


What is using namespace std in c++?

1205


Define pre-condition and post-condition to a member function in c++?

1195


What is a pointer with example?

1327


How can a called function determine the number of arguments that have been passed to it?

1190


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

1149


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1118


How a new operator differs from the operator new?

1181


Explain the difference between using macro and inline functions?

1175


What is protected inheritance?

1093


How do I use arrays in c++?

1053


Can we specify variable field width in a scanf() format string? If possible how?

1349