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

Differentiate between calloc and malloc.

1218


Explain what is a stream?

1029


How can you be sure that a program follows the ANSI C standard?

1555


What is null pointer constant?

1056


What is nested structure in c?

1011


What are the 5 types of organizational structures?

1016


What is a protocol in c?

943


Explain how can you determine the size of an allocated portion of memory?

1033


Did c have any year 2000 problems?

1062


Do you have any idea about the use of "auto" keyword?

1048


Why we not create function inside function.

2141


What is the use of static variable in c?

1041


Write a program to print factorial of given number using recursion?

958


Do variables need to be initialized?

989


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3454