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

Absolutely no .
Because the question asks that whether we can define a main inside other main,they did't ask about we can call main by its self or not.
#include<stdio.h>
void main()
{
void main()
{
printf("main");//un ambigious
}

}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what type of questions arrive in interview over c programming?

2031


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1795


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1071


Can you please explain the difference between exit() and _exit() function?

1033


What is scanf_s in c?

1125


Is there any demerits of using pointer?

1075


Why does everyone say not to use gets?

1107


What is fflush() function?

1138


How is a null pointer different from a dangling pointer?

1033


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3250


When should a type cast be used?

1018


How can I avoid the abort, retry, fail messages?

1138


What is the size of a union variable?

1054


How can I trap or ignore keyboard interrupts like control-c?

1069


What are qualifiers in c?

1037