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...

Write a main() program that calls this function at least 10
times. Try implementing this function in two different
ways. First, use an external variable to store the count.
Second, use a local variable. Which is more appropriate?

Answer Posted / banavathvishnu

main()
{
static int i;
while(i<10)
{
i++;
main();
}

}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a function simple definition?

1097


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1168


How many types of sorting are there in c?

1058


Explain how do you convert strings to numbers in c?

1080


What is meant by type casting?

1054


what do you mean by enumeration constant?

1013


what is the height of tree if leaf node is at level 3. please explain

2153


Explain threaded binary trees?

1158


How can I read in an object file and jump to locations in it?

1031


List some of the static data structures in C?

1202


How do I determine whether a character is numeric, alphabetic, and so on?

1134


What does s c mean in text?

1098


Differentiate between calloc and malloc.

1273


What is a nested loop?

1128


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1140