adspace
Accenture Technical Interview for Experienced in c++ --- Hyderabad
Answer Posted / abhishek rajan
There four kind of storage classes.
auto(stands for automatic)
static
extern
register
when we declare any variable using auto
eg:
auto int x;
or
int x;
then the scope of the variable will be local.
when we declare any variable using static
eg:
static int x;
then the variable with sustain with that assigned value.
extern is used for the global declaratioin.
register; when this storage class is used
eg:
register int x;
then the value of the variable is going to be stored
directly in the register.
but the register should be free to hold the content of x,
otherwise it will be considered as the variable has the
storage class auto.
| Is This Answer Correct ? | 20 Yes | 4 No |
Post New Answer View All Answers
Recently conducted Apptitude test
i want the sample placement paper of goldman sachs urgently. please send it to me
email me previous question papers of bob bank for po exams
Danlaw placement questions and answers
how did you celebrate your last birthday?
Give me Medha Sevo previous written test question papers
If anybody knows the recruitment procedure of IOTL & POWER MECHANICAL. send me the placement papers if u hav... very urgent ...