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
write a program to concatenation the string using switch case?
What is the difference between far and near ?
What is the difference between c and python?
Does c have function or method?
What is the size of array float a(10)?
How does struct work in c?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
how to introdu5ce my self in serco
How can my program discover the complete pathname to the executable from which it was invoked?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What are pointers in C? Give an example where to illustrate their significance.
Why can’t constant values be used to define an array’s initial size?
what is a constant pointer in C
What are the features of the c language?
Explain how do I determine whether a character is numeric, alphabetic, and so on?