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...

proc() {

static i=10;
printf("%d",i);
}

If this proc() is called second time, what is the output?

Answer Posted / vignesh1988i

if it is called for second time also ,it will be 10 only but
in a different thought....

static keyword is only one time initilization....if the
compailer when again reads the same line it blindly ignores
it and print the latest value of yhat static variable

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can f be used for both float and double arguments in printf? Are not they different types?

1014


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2079


Are there constructors in c?

970


What is your stream meaning?

1127


What is the scope of global variable in c?

953


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1198


write a progrmm in c language take user interface generate table using for loop?

1996


What are structures and unions? State differencves between them.

1100


Where are the auto variables stored?

1090


Can you please explain the difference between syntax vs logical error?

1134


Tell us bitwise shift operators?

1022


explain how do you use macro?

1099


Can you please explain the difference between malloc() and calloc() function?

1050


What are the Advantages of using macro

1115


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

2276