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 / nilanjan

Surely. . It will just act like a recursive version of
main(), which will run infinite times if there is no
limiting condition specified.

Sample:

#include <stdio.h>

int main()
{
int static i = 0;

printf("\nFile is too big.");

while(i == 0)
{
i++;
main();
}
return 0;
}

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I swap bytes?

1083


What are derived data types in c?

1094


When would you use a pointer to a function?

1055


What does p mean in physics?

1049


What are the 5 types of organizational structures?

1085


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1325


What is the size of enum in bytes?

1091


What are the advantages of using macro in c language?

1139


What is #include cctype?

1130


Write a program to print numbers from 1 to 100 without using loop in c?

1089


Explain what is meant by high-order and low-order bytes?

1053


What is pass by reference in functions?

851


How can I determine whether a machines byte order is big-endian or little-endian?

1067


Why doesnt the call scanf work?

1202


Why does the call char scanf work?

1213