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
Next Question 
 Hexaware  |  Question 1 of 10    Print  
why the execution of the c programme alway starts from main functions .

  
Total Answers and Comments: 3 Last Update: September 28, 2006     Asked by: jitendra kumar maharana 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 08, 2006 07:59:49   #1  
R.sivakumar        

RE: why the execution of the c programme alway starts ...
ans is: C complier first checks for main() function. if the complier found the main() function,execution starts at this point.
 
Is this answer useful? Yes | No
May 21, 2006 14:55:10   #2  
chandan M        

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 )
 
Is this answer useful? Yes | No
September 28, 2006 02:30:52   #3  
Vani Bappa        

RE: why the execution of the c programme alway starts ...
As in C language top to bottom approach isused so prog always starts execution from main( ).
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
Related Categories
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape