What are stacks? Give an example where they are useful.
No Answer is Posted For this Question
Be the First to Post Answer
Is c++ double?
Explain method of creating object in C++ ?
Why is c++ difficult?
What are the new features that iso/ansi c++ has added to original c++ specifications?
Why can’t you call invariants() as the first line of your constructor?
In what situations do you have to use initialization list rather than assignment in constructors?
What is an orthogonal base class in c++?
How to declare a function pointer?
What is string in c++ programming?
Can we define function inside main in c++?
Explain RAII (Resource Acquisition Is Initialization).
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.