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

Explain pointer. What are function pointers in C?

1149


Give the rules for variable declaration?

1223


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1132


The file stdio.h, what does it contain?

1220


What is the sizeof () a pointer?

1057


Can a void pointer point to a function?

1083


Explain about block scope in c?

1149


Explain what is wrong in this statement?

1178


What are unions in c?

1087


How many bytes is a struct in c?

1217


Do you know the difference between malloc() and calloc() function?

1112


Are there any problems with performing mathematical operations on different variable types?

1106


What is structure in c definition?

1112


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1158


Is anything faster than c?

1064