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

Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3508


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

1106


How arrays can be passed to a user defined function

1018


explain what is an endless loop?

1082


How can you be sure that a program follows the ANSI C standard?

1600


Why cant I open a file by its explicit path?

1027


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1721


Why is c known as a mother language?

1238


Explain what is the advantage of a random access file?

1120


What are header files? What are their uses?

1204


Explain modulus operator. What are the restrictions of a modulus operator?

1011


Is c a great language, or what?

1107


How can you tell whether a program was compiled using c versus c++?

1099


How we can insert comments in a c program?

1116


Which header file is used for clrscr?

1051