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

how can we use static and extern?and where can we use this?

Answer Posted / vignesh1988i

static and extern are some types of storage classes in C...
there are four types of storage classes in C:
1) automatic (auto) storage class
2) static storage class
3) register storage class
4) extern storage class

static is a one which will be read only once by the compiler
(ie) it will ignore an another pass.... or it will be
initialized only once....... the scope of this class is
within the block only....

extern is a global declaration , but most of the compilers
dont prefer it to be used within a program.......


thank u

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between c &c++?

1208


Write a program to reverse a linked list in c.

1180


What is #line used for?

1072


What is infinite loop?

1133


What is p in text message?

1038


Is a pointer a kind of array?

1247


What are global variables and explain how do you declare them?

1184


Difference between exit() and _exit() function?

1177


Where are some collections of useful code fragments and examples?

1195


What is the meaning of 2d in c?

1168


How can I run c program?

1232


Why c is known as a mother language?

1132


What is #error and use of it?

1348


Explain how do you search data in a data file using random access method?

1176


Write a Program to accept different goods with the number, price and date of purchase and display them

6297