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

Why #include is used in c language?

1052


What does %2f mean in c?

1224


what is the function of pragma directive in c?

1121


What are comments and how do you insert it in a C program?

1250


What does *p++ do? What does it point to?

1065


Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.

2234


Write a code to generate divisors of an integer?

1067


can we change the default calling convention in c if yes than how.........?

2533


What are the ways to a null pointer can use in c programming language?

1137


What is the hardest programming language?

1149


To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2638


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1087


Write a program to print fibonacci series using recursion?

1064


What is signed and unsigned?

1062


Why malloc is faster than calloc?

1066