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 the disadvantage of using macros?
Write a program to generate prime factors of a given integer?
how can i get output the following... 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 and 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 plz plz...
What is data structure in c language?
Write a C program where input is: "My name is xyz". output is: "xyz is name My".
How can I read data from data files with particular formats?
What are the advantages and disadvantages of pointers?
When is an interface "good"?
What is formal argument?
what is c programming?
What is memcpy() function?
Explain what is the difference between declaring a variable and defining a variable?