GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Concepts  >  Data Structures
Go To First  |  Previous Question  |  Next Question 
 Data Structures  |  Question 11 of 202    Print  
How many parts are there in a declaration statement?
Skill/Topic: Variables and Pointers
A) 1
B) 2
C) 3
D) 4



  
Total Answers and Comments: 5 Last Update: May 19, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 19, 2006 01:45:17   #1  
samiksc Member Since: October 2005   Contribution: 233    

RE: How many parts are there in a declaration statemen...

(C) 3.

There are 2 mandatory parts variable identifier and data type. Third type is optional which is an optional value.


 
Is this answer useful? Yes | No
February 03, 2006 04:46:53   #2  
rajanhalade Member Since: February 2006   Contribution: 1    

RE: How many parts are there in a declaration statemen...
Third part is not value but the type qualifier like signed unsigned
 
Is this answer useful? Yes | No
March 07, 2007 00:54:57   #3  
A.Rajeshwari        

RE: How many parts are there in a declaration statemen...
4 parts
i. storage class(optional default is auto)
ii. data type modifier or qualifier (signed unsigned long or short)
iii. data type
iv. variable list

 
Is this answer useful? Yes | No
May 18, 2007 22:43:26   #4  
M.Ahmar        

RE: How many parts are there in a declaration statemen...

3 Parts.

Scope (private/public/protected) DataType (integer short byte string etc...) Variable name

Examples:

private int i;
public string name;


 
Is this answer useful? Yes | No
May 18, 2007 22:57:13   #5  
ahmarshi Member Since: May 2007   Contribution: 1    

RE: How many parts are there in a declaration statemen...
3 parts.

i. SCOPE (private/public/protected)
ii. DATATYPE (int short long byte string char etc...)
iii. VARIABLE NAME

e.g.

private int id;
private string name;

 
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