GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  Hexaware

 Print  |  
Question:  why the execution of the c programme alway starts from main functions .



May 05, 2006 14:55:10 #2
 chandan M   Member Since: Visitor    Total Comments: N/A 

RE: why the execution of the c programme alway starts ...
 
it has to do with the execution module,well after the compiler compiles the code, the entry relocatable address location is marked, according to the binary format of a particular OS.In C programs, this entry relocatable address location where the execution starts, is nothing but the Main Function.that means the address of the main function is essentially the control transfer address of the binary file generatedif you want to know more or any other doubts, you can mail me ( openangle@gmail.com )
     

 

Back To Question