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

write a program to find the given number is prime or not

4772


How can I do peek and poke in c?

1082


What are the usage of pointer in c?

1201


What are external variables in c?

1107


What is call by reference in functions?

1457


What is the benefit of using #define to declare a constant?

1100


What are the two forms of #include directive?

1171


What is a lvalue

1087


Is there a way to compare two structure variables?

1127


How do you convert strings to numbers in C?

1230


Explain the use of function toupper() with and example code?

1137


Write a program to identify if a given binary tree is balanced or not.

1166


Write a program to check prime number in c programming?

1099


What does %2f mean in c?

1226


Explain what is a program flowchart and explain how does it help in writing a program?

1100