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...


Can i use Two or More Main Funtion in any C program.?

Answers were Sorted based on User's Feedback



Can i use Two or More Main Funtion in any C program.?..

Answer / vadivelt

Main fuction can be called from a main function of same
prototype(recursive call). But multiple definition of a
main function is not possible.

Is This Answer Correct ?    12 Yes 1 No

Can i use Two or More Main Funtion in any C program.?..

Answer / madhu cherukuri

always the c program starts from main function only.if we
will write two main functions then it is confusion to complier.
one more import point the main function it self can not
executed one more internal function i.e start function
called the main function then main starts execution.

Is This Answer Correct ?    7 Yes 0 No

Can i use Two or More Main Funtion in any C program.?..

Answer / shirad

There cannot be two functions with same name or else there
will be error in build process stating "redefinition"

Is This Answer Correct ?    3 Yes 1 No

Can i use Two or More Main Funtion in any C program.?..

Answer / manjunath m

There cannot be two functions with same name or else there
will be error in build process stating "redefinition"

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

#define f(x) main() { printf("\n%d",f(2+2)); }

5 Answers  


When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?

2 Answers   Aloha Technology,


Do you know the difference between malloc() and calloc() function?

0 Answers  


What are near, far and huge pointers?

0 Answers   Hexaware, Thomson Reuters, Virtusa,


what is c language.

3 Answers  


Program to find larger of the two numbers without using if-else,while,for,switch

11 Answers   iNautix, Wipro,


which of the function operator cannot be over loaded a) <= b)?: c)== d)*

10 Answers   Cisco, CTS, Google, HCL, HP,


How can I increase the allowable number of simultaneously open files?

1 Answers   ABC,


1.find the second maximum in an array? 2.how do you create hash table in c? 3.what is hash collision

9 Answers   HCL, Qualcomm,


main() { char x; while(x=0;x<=255;x++) printf("\nAscii value %d Charater %c",x,x); }

2 Answers  


What are the types of pointers?

0 Answers  


Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not) - The array length is arbitrary - output the results to the stdout

0 Answers   XYZ,


Categories