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


Please Help Members By Posting Answers For Below Questions

Recently conducted Apptitude test

2059


i want the sample placement paper of goldman sachs urgently. please send it to me

4499


email me previous question papers of bob bank for po exams

2575


Danlaw placement questions and answers

1970


how did you celebrate your last birthday?

1920


Give me Medha Sevo previous written test question papers

2051


If anybody knows the recruitment procedure of IOTL & POWER MECHANICAL. send me the placement papers if u hav... very urgent ...

4485