1.

______________ have the return type void.(a) all functions(b) constructors(c) destructors(d) none of the mentionedI have been asked this question during an interview.This interesting question is from Void in division Types, Pointers, Arrays & Structures in C++ of C++

Answer»

The correct OPTION is (d) none of the mentioned

To EXPLAIN: Constructor CREATES an OBJECT and DESTRUCTOR destroys the object. They are not supposed to return anything, not even void.



Discussion

No Comment Found

Related InterviewSolutions