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

Where static variables are stored in memory in c?

948


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2075


How can I implement sets or arrays of bits?

988


Is c is a middle level language?

1012


Explain the difference between strcpy() and memcpy() function?

949


What is the difference between single charater constant and string constant?

1031


What is the auto keyword good for?

1064


What are linked lists in c?

1086


what is the difference between 123 and 0123 in c?

1157


What is a pointer variable in c language?

1037


Explain what is a 'locale'?

1016


If you know then define #pragma?

1054


What is realloc in c?

1018


What is meant by preprocessor in c?

948


What are conditional operators in C?

1048