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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain why can’t constant values be used to define an array’s initial size?

1357


What is an arrays?

1082


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2329


Why c is called a middle level language?

1114


Is c is a low level language?

1144


largest Of three Number using without if condition?

1604


main() { printf("hello"); fork(); }

1202


Do pointers store the address of value or the actual value of a variable?

1082


Describe the modifier in c?

1102


How can I do graphics in c?

1035


What is the symbol indicated the c-preprocessor?

1252


Explain how can a program be made to print the line number where an error occurs?

1220


Is c language still used?

985


What is the difference between functions abs() and fabs()?

1158


Write a code to generate a series where the next element is the sum of last k terms.

1229