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

Which is better between malloc and calloc?

1122


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

1041


What is the purpose of main( ) in c language?

1093


Why is python slower than c?

1029


What is c definition?

1199


what do you mean by inline function in C?

1010


What are the different types of control structures in programming?

1088


what will be maximum number of comparisons when number of elements are given?

1853


What are control structures? What are the different types?

1043


What is an identifier?

979


Write a program to know whether the input number is an armstrong number.

1074


how can I convert a string to a number?

1033


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1044


Explain how do you determine whether to use a stream function or a low-level function?

1029


How can I copy just a portion of a string?

1275