Answer Posted / ravi joshi
As many of them have answered here, main is a special
function in C/C++ programs. The compiler does not care if
you have defined main or not, but linker does. If linker
finds main defined in the objects being linked, then the
address of main function is placed at the top of execution
stack. And automatically when loader loads the
program/process, the main function gets loaded at the top of
execution stack, and system starts execution using
__crtmain() which internally calls main() of the program/process
Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
What is a 'null pointer assignment' error?
Write a program to implement queue.
What are the header files used in c language?
What is the explanation for modular programming?
Tell me about low level programming languages.
Are there namespaces in c?
How can this be legal c?
i got 75% in all semester am i eligible for your company
How do I send escape sequences to control a terminal or other device?
Explain what is the difference between a string and an array?
What is echo in c programming?
Write a program to print fibonacci series using recursion?
What is a scope resolution operator in c?
State two uses of pointers in C?
Write the control statements in C language