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 typedef?

1 Answers  


What is variable declaration and definition in c?

0 Answers  


What was noalias and what ever happened to it?

0 Answers  


What are the advantages of the functions?

0 Answers  


What is meant by recursion?

0 Answers   ADP,






write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


totally how much header files r in c language

8 Answers   TCS,


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


What is hashing in c?

0 Answers  


the number 138 is called well ordered number because the three digits in the number (1,3,8) increase from left to right (1<3<8). the number 365 is not well ordered coz 6 is larger than 5. write a program that wull find and display all possible three digit well ordered numbers. sample: 123,124,125,126,127,128,129,134 ,135,136,137,138,139,145,146,147 148 149,156.......789

5 Answers  


What is the best way to comment out a section of code that contains comments?

0 Answers  


Why we use int main and void main?

0 Answers  


Categories