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 |
Explain the bubble sort algorithm.
write a program to find the number of even integers and odd integers in a given array in c language
13 Answers IAI Cameroun, NIIT, Olive Tech, QIS,
What is return type in c?
What is the advantage of a random access file?
write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview
2 Answers Satyam, UNIS, Wipro,
What are the scope of static variables?
Write a program to generate prime factors of a given integer?
What is diffrance between declaration and defination of a variable or function
How can you tell whether a program was compiled using c versus c++?
coding for Fibonacci.?
What is function prototype in c language?
O,T,T,F,F,S,S,E,N,?,?,?,T,F,F,S,S,E,N