What is searching? Explain linear and binary search.
No Answer is Posted For this Question
Be the First to Post Answer
What is RAII (Resource Acquisition Is Initialization)?
Where the memory to the static variables is allocated?
Explain RAII (Resource Acquisition Is Initialization).
What do you mean by storage classes?
Explain pass by value and pass by reference.
Carry out conversion of one object of user-defined type to another?
What is a storage class used in c++?
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.
If dog is a friend of boy, is boy a friend of dog?
class Foo { const int x; protected: Foo(int f); ~Foo(); }; Foo f; Referring to the sample code above, why will the class declaration not compile? a) The variable x is const. b) The destructor is protected. c) The destructor is not public. d) The constructor is protected. e) There is no default constructor.
Please explain the reference variable in c++?
What is the header file for setw?