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



what is the difference between auto and static keywords..

Answer / 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

More C Interview Questions

code for quick sort?

0 Answers  


What is the difference between malloc calloc and realloc in c?

0 Answers  


How many types of operator or there in c?

0 Answers  


Explain how can you tell whether a program was compiled using c versus c++?

0 Answers  


How pointers are declared?

0 Answers  


I need previous papers of CSC.......plz help out by posting them.......

0 Answers  


write a program to copy a string without using a string?

2 Answers  


What are structure members?

0 Answers  


#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

0 Answers   Wilco,


Compare interpreters and compilers.

0 Answers  


What is the meaning of 2d in c?

0 Answers  


write c program without semicolon

11 Answers   MindTech, TCS, Wipro,


Categories