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 meant by global static? why we have to use static
variable instead of Global variable

Answer Posted / abdur rab

Static remains throughout the program, however its scope is
limited to that file alone. If a program consists of
multiple files, you want a variable to be seen by the
entire file and do not want that variable to be seen by the
other files, then mark is as static

static int a;

as a global variable

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why can arithmetic operations not be performed on void pointers?

999


What is assignment operator?

1019


How can I do serial ("comm") port I/O?

1150


What does == mean in texting?

1237


What is meant by keywords in c?

1043


How can you increase the allowable number of simultaneously open files?

1101


Tell me what are bitwise shift operators?

1102


Who is the main contributor in designing the c language after dennis ritchie?

967


Explain how can I right-justify a string?

1008


How do I convert a string to all upper or lower case?

1068


What is volatile variable how do you declare it?

1048


What is the benefit of using const for declaring constants?

1002


Is it better to use malloc() or calloc()?

1081


What is pragma in c?

1147


How do you view the path?

1087