GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 38 of 87    Print  
Main must be written as

A. The first function in the program
B. Second function in the program
C. Last function in the program
D. Any where in the program


  
Total Answers and Comments: 7 Last Update: December 08, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: laxmikanth
 
main can be written any where in the program.To be frank main is a user defined word and it is a platform to call any function.

Above answer was rated as good by the following members:
aman15490
January 29, 2006 04:53:56   
Amit Tyagi        

RE: Main must be written asA. The first functio
(A)
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
February 10, 2006 17:50:10   
laxmikanth        

RE: Main must be written asA. The first functio...
main can be written any where in the program.To be frank main is a user defined word and it is a platform to call any function.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 18, 2006 09:47:52   
Abhishek        

RE: Main must be written asA. The first functio...
i think main is a library function and not a user defined function however it can be placed anywhere.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
June 19, 2007 05:23:02   
bairaviuthra        

RE: Main must be written asA. The first functio...
Its not a must that main must the first function to be written but it is the first function executed.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 28, 2008 04:33:13   
hrs1129 Member Since: May 2008   Contribution: 4    

RE: Main must be written asA. The first function in the programB. Second function in the programC. Last function in the programD. Any where in the program
perfectly speaking main() is a fun in which all the program exists so A. THE FIRSTFUN IN THE PROGRAM . IS THE RIGHT ANSWER
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
June 13, 2008 12:02:11   
chandradeepika Member Since: May 2008   Contribution: 36    

RE: Main must be written asA. The first function in the programB. Second function in the programC. Last function in the programD. Any where in the program
ans:D)any where in the pgm
Becoz after the main only the execution starts.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
December 08, 2009 08:34:50   
vishwanathpillay Member Since: July 2008   Contribution: 13    

RE: Main must be written asA. The first function in the programB. Second function in the programC. Last function in the programD. Any where in the program
Main is the Only function that will execute at the start so it doesnt matter where ever the main can be placed. But there can't be any other function inside main function...
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape