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

Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

0 Answers   HP,


what is the diffrenet bettwen HTTP and internet protocol

0 Answers  


Can you write the algorithm for Queue?

0 Answers   College School Exams Tests, TCS,


Why enum is used in c?

0 Answers  


Explain what is the benefit of using #define to declare a constant?

0 Answers  


What is the meaning of typedef struct in c?

0 Answers  


Explain what is the concatenation operator?

0 Answers  


How is a two dimensional array passed to function when the order of matrix is not known at complie time?

1 Answers   CSC,


how to convert binary to decimal and decimal to binary in C lanaguage

7 Answers   BPO, Far East Promotions, IBM, RBS,


Write a program to print a (*)pattern programming (A to Z) in capital in one programming ?

2 Answers   TCS,


Why is it usually a bad idea to use gets()? Suggest a workaround.

1 Answers  


Find the O/p of the following 1) #include int main() { char c='1'; int j=atoi(c); }

4 Answers   Subex,


Categories