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 is the use of ‘auto’ keyword?



what is the use of ‘auto’ keyword?..

Answer / vatsava

scope of the auto keyword is local to the block in which
the variable is defined.

for ex:
main()
{
auto int i=1;
{
auto int i=2;
{
auto int i=3;
printf("%d",i);
}
printf("%d",i);
}
printf("%d",i);
}
the op would be 321

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More C Interview Questions

main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

8 Answers   Vector,


what are the static variables

8 Answers   HCL, iFlex, TCS, Wipro,


what is difference between null and nul in c language

2 Answers  


What is the advantage of using #define to declare a constant?

0 Answers   Agilent, ZS Associates,


What is the use of clrscr?

0 Answers  


write a programme that inputs a number by user and gives its multiplication table.

2 Answers  


What do you mean by a local block?

0 Answers   InterGraph,


What does extern mean in a function declaration?

4 Answers  


what is the use of ~ in c lang?????

3 Answers  


give an example of type casting by a simple c program

2 Answers   TCS,


Write a programe print the sum of series 0,1,2,.....10

7 Answers  


What is the meaning of typedef struct in c?

0 Answers  


Categories