GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 4 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
C



  
Total Answers and Comments: 8 Last Update: March 03, 2009   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: brijesh jain
 
The answer can be option D. 
 
Main can be written anywhere in C program.

Above answer was rated as good by the following members:
shashgibbs88
August 17, 2005 06:49:01   #1  
brijesh jain        

RE: Main must be written asa.the first function in the programb.Second function in the programc.Last fun...
The answer can be option D.

Main can be written anywhere in C program.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 23, 2005 03:01:50   #2  
Sinic        

RE: Main must be written asa.the first function in the programb.Second function in the programc.Last fun...
It's not sensitive the position of the Main function in C program so answer is D
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 25, 2005 02:00:01   #3  
rp        

RE: Main must be written asa.the first function in the programb.Second function in the programc.Last fun...
answer is D
where ever be the main execution starts from there. so no problem

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 03, 2006 22:41:25   #4  
MAHAVEER PATIL        

RE: Main must be written asa.the first function in...
second function in the programme
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
April 05, 2006 16:29:13   #5  
ratnakar        

RE: Main must be written asa.the first function in...

In C there are no function declarations

only definitions so main is the last in the program.


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
April 23, 2006 01:06:23   #6  
GOKILA        

RE: Main must be written asa.the first function in...
hey main() can be written anywhere in the program
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 23, 2007 23:57:49   #7  
saravanan        

RE: Main must be written asa.the first function in...
main() function can be written anywhere in the pgm but it should be include in the pgm

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 03, 2009 00:46:13   #8  
poojadev Member Since: March 2009   Contribution: 3    

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
Answer is d
It can be written any where in the program
Considering that it should not be written inside another function - since it includes the co-functions inside it whenever a function is called.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

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

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

Page copy protected against web site content infringement by Copyscape