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 does static mean in c?



What does static mean in c?..

Answer / sasi

Whenever Static is used with a Variable declaration .. it defines that the last updated value of the Variable will not be deleted after the process of a program .
Eg : #include <stdio.h>
int main() {
func();
func();
func();
}
void func() {
static int i=2;
i=i+1;
printf("%d
",i);
return 0;
}
Output :
3
4
5

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

where do we use structure pointer?

1 Answers  


related proverb of "dont count your chicken before it hatches"

1 Answers  


What language is c written?

0 Answers  


write a c program that prints all multiples of 3between 1 and 50.

5 Answers  


what is mean by Garbage collection ? Please answer me. Advance thanks.

4 Answers   Excel,


What's the total generic pointer type?

0 Answers  


What are compound statements?

0 Answers  


what type of language is C?

13 Answers   Microsoft,


All technical questions

0 Answers   TCS,


give an example of type casting by a simple c program

2 Answers   TCS,


write a program to swap two variables a=5 , b= 10 without using third variable

5 Answers  


Why is void main used?

0 Answers  


Categories