How main() is getting called in C programm

atul.sharma12's Avatar, Join Date: May 2008
Go4Expert Member
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's Avatar, Join Date: Jul 2004
Go4Expert Founder
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