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

there will be no error but the output will go in infinite
loop
main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
main();
getch();
}

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

1166


Disadvantages of C language.

1157


Can you pass an entire structure to functions?

1172


What are header files? What are their uses?

1284


What is variable and explain rules to declare variable in c?

1178


How does pointer work in c?

1194


What is the general form of a C program?

1068


What is a protocol in c?

1055


How can I automatically locate a programs configuration files in the same directory as the executable?

1231


Does c have circular shift operators?

1298


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1216


What is the value of c?

1130


What’s the special use of UNIONS?

1205


Is c a great language, or what?

1166


which is conditional construct a) if statement b) switch statement c) while/for d) goto

1264