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 are the advantages of using new operator as compared to the function malloc ()?

1325


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1914


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1358


How can I recover the file name given an open stream or file descriptor?

1075


What is the difference between array_name and &array_name?

1289


how can f be used for both float and double arguments in printf? Are not they different types?

1060


How can you access memory located at a certain address?

1112


What is the process to generate random numbers in c programming language?

1168


What do you mean by scope of a variable in c?

1008


Explain main function in c?

1077


How can a program be made to print the name of a source file where an error occurs?

1214


how to capitalise first letter of each word in a given string?

1921


Explain what are the standard predefined macros?

1105


What is scanf () in c?

1120


Can we change the value of #define in c?

995