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

Is array name a pointer?

1079


Explain what is wrong with this program statement? Void = 10;

1313


What is c language in simple words?

1114


Hai what is the different types of versions and their differences

1978


What are pointers? Why are they used?

1248


What is the default value of local and global variables in c?

1099


What language is lisp written in?

1325


Explain that why C is procedural?

1193


What is modifier & how many types of modifiers available in c?

1074


Why we not create function inside function.

2255


Explain how can I convert a string to a number?

1148


Multiply an Integer Number by 2 Without Using Multiplication Operator

823


Explain how do you sort filenames in a directory?

1077


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1305


What is pointers in c?

1167