Can i use Two or More Main Funtion in any C program.?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What is typedef?
What is variable declaration and definition in c?
What was noalias and what ever happened to it?
What are the advantages of the functions?
What is meant by recursion?
write a program to find the largest and second largest integer from an array
totally how much header files r in c language
Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?
What is hashing in c?
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
What is the best way to comment out a section of code that contains comments?
Why we use int main and void main?