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 |
how to find greatet of 10 numbers without using array?
give an example of type casting by a simple c program
Linked lists -- can you tell me how to check whether a linked list is circular?
write a program to check whether a number is Peterson or not.
How would you find a cycle in a linked list?
Write a program to print fibonacci series without using recursion?
to find the program of matrix multiplication using arrays
What is the right type to use for boolean values in c?
What is the best style for code layout in c?
What are register variables in c?
Find the largest number from the given 2 numbers without using any loops and the conditional operator.
What is the scope of static variables in c language?