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 the difference between struct and typedef struct in c?

1169


Why can’t we compare structures?

1320


what are # pragma staments?

2077


what do you mean by enumeration constant?

1060


What is string in c language?

1243


Explain the binary height balanced tree?

1231


Why C language is a procedural language?

1093


What is the purpose of macro in C language?

1162


What is the purpose of sprintf?

1201


What is a stream water?

1278


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1133


What is the hardest programming language?

1210


How can I insert or delete a line (or record) in the middle of a file?

1068


What does char * * argv mean in c?

1117


Why calloc is better than malloc?

1085