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 difference between auto and static keywords

Answer Posted / dr. guruprasad

auto and static are both storage classes.
if a variable is declared as auto - then the life of it will be only till function block.
if static - then value persists between various function call. Life till program ends.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is stack a keyword in c?

1148


What are header files and explain what are its uses in c programming?

1172


What are the header files used in c language?

1095


What are the types of data structures in c?

1210


Here is a good puzzle: how do you write a program which produces its own source code as output?

1170


How can I change their mode to binary?

1185


What are the features of the c language?

1139


what is the syallabus of computer science students in group- 1?

2368


Explain how does flowchart help in writing a program?

1168


program for reversing a selected line word by word when multiple lines are given without using strrev

2535


Hai what is the different types of versions and their differences

1976


What is extern variable in c with example?

1056


how to count no of words,characters,lines in a paragraph.

4470


What are runtime error?

1177


What is the purpose of the statement: strcat (S2, S1)?

1223