Monday 5 January 2015

Define all storage class in c

AUTO

Auto is the default storage class for all local variable.



{
into count;
auto into Month;
}


REGISTER

Register is used to define local variable that should be stored in a register instead of RAM.


{
register int miles;
}



STATIC

Static is the default storage of class for global variable.


static into Count;
int city;
{
print("%d",city);
}

No comments:

Post a Comment