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

State the difference between x3 and x[3].

1052


What do you understand by friend-functions? How are they used?

1157


Write a program to reverse a given number in c?

981


Dont ansi function prototypes render lint obsolete?

1062


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2075


Do pointers store the address of value or the actual value of a variable?

1020


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1212


Is fortran faster than c?

983


how can I convert a string to a number?

1030


Why is main function so important?

1047


What is a lvalue

1040


What is c token?

1012


What are dangling pointers in c?

1119


What does the function toupper() do?

1065


Explain the advantages of using macro in c language?

952