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 / 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


Please Help Members By Posting Answers For Below Questions

What does %p mean c?

1016


Can you return null in c?

1093


What is the use of function overloading in C?

1096


How do you convert strings to numbers in C?

1166


What is indirection in c?

1020


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

2702


What are the features of c language?

1021


When is a void pointer used?

1191


How is null defined in c?

1099


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

1219


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?

1045


what is the difference between class and unio?

2304


What is build process in c?

1079


What is the difference between exit() and _exit() function?

991


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1084