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

What is malloc and calloc?

0 Answers  


What is the difference between void main and main in c?

0 Answers  


What is meant by operator precedence?

0 Answers  


Do you know pointer in c?

0 Answers  


what will be printed by this printf? printf("%c",printf("hi")["sharkselva"])); }

3 Answers   HCL,


What are variables c?

0 Answers  


How does free() know how many bytes to free?

8 Answers  


WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

7 Answers  


List a few unconditional control statement in c.

0 Answers  


What are valid signatures for the Main function?

0 Answers  


Can static variables be declared in a header file?

0 Answers  


What is the difference between exit() and _exit()?

2 Answers  


Categories