Explain the scope of resolution operator.
No Answer is Posted For this Question
Be the First to Post Answer
Will c++ be replaced?
Explain explicit container.
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData
If all is successful, what should main return a) 0 b) 1 c) void
Why do C++ compilers need name mangling?
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.
Write any small program that will compile in "C" but not in "C++"
What are the unique features of C++.
Do we have to use initialization list in spite of the assignment in constructors?
Differentiate between a deep copy and a shallow copy?
What are member functions used in c++?
Is c++ vector a linked list?