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
Without Computer networks, Computers will be half the use. Comment.
Is anything faster than c?
If fflush wont work, what can I use to flush input?
What is define directive?
What is sizeof array in c?
Can a function argument have default value?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How can you restore a redirected standard stream?
How does selection sort work in c?
Explain what is wrong with this program statement? Void = 10;
What does %d do in c?
What is array within structure?
What is extern keyword in c?
write a program to display all prime numbers
write a c program in such a way that if we enter the today date the output should be next day's date.