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 |
WHOT IS CHAR?
How the processor registers can be used in C ?
When is a null pointer used?
write a program which counts a product of array elements lower than 10.
How can my program discover the complete pathname to the executable from which it was invoked?
What is strcmp in c?
what is the purpose of the code, and is there any problem with it. unsigned int v[10]; unsigned int i = 0; while (i < 10) v[i] = i++;
Why pointers are used?
what is the difference between 123 and 0123 in c?
Why doesnt this code work?
What is an object?
How can you increase the size of a dynamically allocated array?