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  >  Birlasoft  >  Technical

 Print  |  
Question:  class Word
{
public:
Word(const char*, int = 0);
};
Referring to the sample code above what is the minimum number of arguments required to call the constructor ?


Answer: a) 0
b) 1
c) 2
d) 3


July 07, 2005 18:02:24 #1
 vaibhav kaushik   Member Since: Visitor    Total Comments: N/A 

RE: class Word
{
public:
Word(const char*, int = 0);
};
Referring to the sampl

 
its answer is 0.....as it will take the default argument system
     

 

Back To Question