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

write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2256


How can you check to see whether a symbol is defined?

583


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

643


Is it possible to have a function as a parameter in another function?

590


Is it cc or c in a letter?

553






Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

702


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

624


What are the loops in c?

585


Is flag a keyword in c?

666


Do you know the purpose of 'register' keyword?

633


how we can make 3d venturing graphics on outer interface

3983


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1775


Explain how do I determine whether a character is numeric, alphabetic, and so on?

642


Is register a keyword in c?

621


What are the different types of data structures in c?

587