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...

what is diff between localstatic and globalstatis variable
possible 2 use in another file...?

Answer Posted / abdur rab

Local Static
============
The scope of the variable is only within the function where
it is declared, throughout the program. ie the value is
preserved until the end of the program.


Global Static
=============
The scope of the variable is only within the file where it
is declared, throughout the program. ie the value is
preserved until the end of the program.

Global Static variables are not visible outside the files
where they are declared.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Here is a neat trick for checking whether two strings are equal

1016


How can I manipulate individual bits?

1037


What is data structure in c programming?

1073


What is floating point constants?

1120


Is register a keyword in c?

1035


What is sizeof return in c?

1032


What are the 32 keywords in c?

1090


What is the use of void pointer and null pointer in c language?

1117


What is the symbol indicated the c-preprocessor?

1240


Why main is not a keyword in c?

1250


What are the types of arrays in c?

1174


Explain what is a static function?

1104


When can you use a pointer with a function?

1060


What is #include conio h?

996


Explain how many levels deep can include files be nested?

1072