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 is a structure and why it is used?

1291


What is line in c preprocessor?

1099


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2145


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1285


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1166


what is use of malloc and calloc?

1950


Is swift based on c?

1148


Why is c still so popular?

1101


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

2024


Are bit fields portable?

1207


Is c object oriented?

1011


write a c program to calculate sum of digits till it reduces to a single digit using recursion

3379


What are bitwise shift operators in c programming?

1135


What is the difference between fread buffer() and fwrite buffer()?

1224


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1054