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

main marks the beginning of a program, 2 direct mains can't
be there as it will make the compiler dumb!(literally),in
this case it will give an error, or an infinite loop
operation will be executed.

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1304


What is the mean of function?

1131


What are the different types of data structures in c?

1166


Differentiate between static and dynamic modeling.

1129


What is the difference between single charater constant and string constant?

1093


What is infinite loop?

1088


What is the correct code to have following output in c using nested for loop?

1087


How to implement a packet in C

2889


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2159


What is the data segment that is followed by c?

1092


write a c program in such a way that if we enter the today date the output should be next day's date.

2196


What does the function toupper() do?

1130


What is extern variable in c with example?

997


Write a program to use switch statement.

1133


Explain what is wrong with this program statement?

1120