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 are Storage Classes in C ?

Answer Posted / sagar kolte & shakti panch

storage class is nothing but diffrent location laocation in
memroy::::
Storage class tells us:

1) Where the variable is stored.

2) Initial value of the variable.

3) Scope of the variable.Scope specifies the part of the
program which a variable is accessed.

4) Life of the variable.

there are 4 class
1) register -> (all the cpu reg)
2) auto -> scope is local to function perticular function

3) extern-> all global variables by default they are global
4) static ->Variable is stored in memory.

Default value is zero.

Scope is local to the block.

Life is,value of the variable persists between different
function calls.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ based on c?

1020


Explain what is wrong with this statement? Myname = ?robin?;

1520


Do you know the use of fflush() function?

1011


Write a program which returns the first non repetitive character in the string?

1052


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1099


What is ctrl c called?

1001


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1012


plz let me know how to become a telecom protocol tester. thank you.

2136


Is c is a high level language?

1123


What is the difference between array and linked list in c?

1079


When can a far pointer be used?

960


What does 2n 4c mean?

1176


Write a program to print “hello world” without using semicolon?

1076


what are non standard function in c

1847


Why does this code crash?

1026