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

Whether there can be main inside another main?If so how does
it work?

Answer Posted / harinath

yes there can be
for example
main()
{
static int count=50;
printf("%d",count--);
while(count>0)
main();
}
here the output is numbers upto 1 then it comes out of it.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In a header file whether functions are declared or defined?

1116


What are structures and unions? State differencves between them.

1158


How variables are declared in c?

1025


What is array in c with example?

1225


What is header file in c?

1053


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1083


What is #line?

1034


What is external variable in c?

1049


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1242


What is difference between structure and union with example?

1038


What is boolean in c?

1075


What is data types?

1065


a program that can input number of records and can view it again the record

1899


What is volatile variable in c with example?

1028


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2113