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

What is c programming structure?

1 Answers  


What do mean by network ?

1 Answers  


main is a predefined or user define function if user defined why? if predefined whay?

12 Answers   TCS,


Write a code on reverse string and its complexity.

1 Answers   Expedia,


how to write a data 10 in address location 0x2000

3 Answers  


The variables are int sum=10,SuM=20; these are same or different?

3 Answers  


what is the diff between the printf and sprintf functions?? and what is the syntax for this two functions ??

5 Answers  


What is the explanation for prototype function in c?

1 Answers  


can please someone teach me how to create this program using while statement.. this is the output should look like 0 2 4 6 8 10 -thanks.. :) need it asap...

7 Answers  


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

1 Answers   TISL,


What is the sizeof () operator?

1 Answers  


12344321 123 321 12 21 1 1 how i print this program??

5 Answers   DSR Management, Winit,


Categories