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

what are the different storage classes in c?

657


Write a program for Overriding.

672


What is the collection of communication lines and routers called?

604


What is the use of ?

613


code for quick sort?

1609






a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

680


What is the difference between array and pointer in c?

569


What are lookup tables in c?

544


What are the salient features of c languages?

616


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

660


What is infinite loop?

621


What are the two forms of #include directive?

636


Describe the order of precedence with regards to operators in C.

628


Write a program that accept anumber in words

1245


Why is c platform dependent?

611