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 / saurabh

does static function increment the counter variable by
one?? if not then how can u say that i value will be
incremented by 1.
finally the i value will be 10 only. it will not
increment.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a string?

1060


Explain do array subscripts always start with zero?

1189


How do we print only part of a string in c?

982


Are bit fields portable?

1115


what is the basis for selection of arrays or pointers as data structure in a program

4262


What is external variable in c?

1020


what does static variable mean?

1064


What is the use of structure padding in c?

1021


What are the Advantages of using macro

1127


c language interview questions & answer

1913


What is the difference between a free-standing and a hosted environment?

1107


Why is c not oop?

937


What is use of #include in c?

1109


Can we replace the struct function in tree syntax with a union?

1248


Can you define which header file to include at compile time?

989