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 scope of static variables in c language?



What is the scope of static variables in c language?..

Answer / dhanshri chabukswar

in c language the scope of a static variable depends on where it is declared
void func(){
static int x=0;
x++;
printf("%d",x);
}
scope - is x
out put- 123 if you call func()three times

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=

16 Answers   CybOrg, Siemens,


without using arithmatic operator convert an intger variable x into x+1

3 Answers  


program to find the roots of a quardratic equation

1 Answers  


Is c an object oriented programming language?

1 Answers  


What does double pointer mean in c?

0 Answers  


what is bit rate & baud rate? plz give wave forms

0 Answers  


When should the volatile modifier be used?

0 Answers  


Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?

7 Answers  


Explain b+ tree?

0 Answers  


Describe explain how arrays can be passed to a user defined function

0 Answers  


How do I create a directory? How do I remove a directory (and its contents)?

0 Answers  


In C, What is the #line used for?

2 Answers  


Categories