| |
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, 2006 05:54:30 |
#7 |
| manishsddiet |
Member Since: July 2006 Total Comments: 2 |
RE: class Word { public: Word(const ch... |
| answer should be be it will take 1 minimum 1 argument since we have placed a const char pointer in argument in the constructor since there is no othet constructor it will definitely require 1 argument to be passed to the char ptr |
| |
Back To Question | |