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

Differentiate between Macro and ordinary definition.

1377


What are the three constants used in c?

993


How can a number be converted to a string?

1320


Explain union. What are its advantages?

1075


What is the explanation for the dangling pointer in c?

1111


What the different types of arrays in c?

1058


Here is a good puzzle: how do you write a program which produces its own source code as output?

1091


What is the difference between declaring a variable and defining a variable?

1267


What is a lvalue

1079


What does %c mean in c?

1081


What is the size of structure in c?

1149


Which is better oop or procedural?

1057


Is null a keyword in c?

1194


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1069


Why do we use namespace feature?

1051