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  >  TCS  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 5 of 87    Print  
Which of the following about automatic variables within a function
is correct ?
a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.
C



  
Total Answers and Comments: 5 Last Update: October 01, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: harinisathiyamurthy
 
AUTOMATIC VARIABLES ARE ALWAYS DECLARED WITHIN A FUNCTION.. SO THEY A LOCAL...

Above answer was rated as good by the following members:
ruchi arya
August 25, 2005 02:03:48   #1  
rp        

RE: Which of the following about automatic variables within a function is correct ?a.its type must be de...
answer C in the sense,A is wrong? 
how could the statement A wrong 
with out declaring the variable how can we use it? 
C is right but A is right too... 
think about B also for a while...

 
Is this answer useful? Yes | No
December 10, 2005 02:07:26   #2  
Aniruddha        

RE: Which of the following about automatic variables w...
A may/may not be correct-It may be used within a function and defined as global outside of it..Hence,its being used without being defined in the funcion.B May be global/local.Hence Not always true.D Same as aboveC- It is true.If declared static,then its initialized to zero.
 
Is this answer useful? Yes | No
March 15, 2006 00:46:36   #3  
satish_kattika        

RE: Which of the following about automatic variables w...
c is correct there is no need to declare avariable as aouto by default it is auto
 
Is this answer useful? Yes | No
September 25, 2007 14:19:15   #4  
piyush        

RE: Which of the following about automatic variables w...
The answer is option B.
As automatic variables are local only to the scope in which it is declared.

 
Is this answer useful? Yes | No
October 01, 2007 12:45:31   #5  
harinisathiyamurthy Member Since: October 2007   Contribution: 2    

RE: Which of the following about automatic variables w...
AUTOMATIC VARIABLES ARE ALWAYS DECLARED WITHIN A FUNCTION.. SO THEY A LOCAL...
 
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  |   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