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

Explain how are portions of a program disabled in demo versions?

1173


What is wrong with this code?

1242


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

1071


why wipro wase

2367


What is bubble sort technique in c?

1039


What do you understand by friend-functions? How are they used?

1250


Why is c still so popular?

1101


What is the purpose of ftell?

1137


What is the difference between memcpy and memmove?

1086


Explain what is a 'locale'?

1130


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15890


What is pass by reference in functions?

912


What is the symbol indicated the c-preprocessor?

1318


How can I sort a linked list?

1086


What is a macro?

1163