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 are the two forms of #include directive?
Ow can I insert or delete a line (or record) in the middle of a file?
What are the disadvantages of external storage class?
Can we use any name in place of argv and argc as command line arguments?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
what is the role you expect in software industry?
What is pointer and structure in c?
What are unions in c?
What is zero based addressing?
What is meant by initialization and how we initialize a variable?
What is formal argument?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is else if ladder?
How can you convert integers to binary or hexadecimal?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none