What are Storage Classes in C ?
Answer Posted / vijay r15
storage class is an
attribute that changes
the behaviour of a
variable
There r 4types of
storage classes.They
are
auto
static
extern
register
auto- auto is the
default var type.
ex int x=1 and auto
int x=1 both r same
static- static
variable is a
variable,with in the
scope when it reaches
the initialization it
blindly igores and
hold the updated value
register-reg var tells
the compiler that the
variable will be
heavily used.It is
stored in cpu register
extern- extern var
tells that they have
allocated space in
some other program.
But just using here.
We cant initialize
using extern
with thanks and
regards,
vijay r15,
raj.Vijay55@gmail.Com
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What does %p mean c?
Can you return null in c?
What is the use of function overloading in C?
How do you convert strings to numbers in C?
What is indirection in c?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What are the features of c language?
When is a void pointer used?
How is null defined in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
what is the difference between class and unio?
What is build process in c?
What is the difference between exit() and _exit() function?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.