Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How main() is getting called in C programm (http://www.go4expert.com/forums/main-getting-called-c-programm-t10773/)

atul.sharma12 24May2008 15:51

How main() is getting called in C programm
 
I am having some doubts-

who called main() in a 'C' programme?

Main() is a function (Considered as Entry point to program) from that we can call our sunroutines but someone has to call this Main() and it will return to whom and in runtime this Main() is stored/runnng exactly where in the memroy ?

I will appreciate if someone help me to figure it out .

Looking forward

shabbir 24May2008 23:04

Re: How main() is getting called in C programm
 
Main is the entry point is what book says but actually before main is called there are lots of functions / variables that needs to be called / initialize like Global variables / static functions and all are done by CRTStartup function


All times are GMT +5.5. The time now is 18:56.