What are the restrictions apply to constructors and destructors?
No Answer is Posted For this Question
Be the First to Post Answer
How to reduce a final size of executable?
Explain the concept of friend function in c++?
Does there exist any other function which can be used to convert an integer or a float to a string?
Explain differences between alloc() and free()?
What are the implicit member functions of class?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
How would you use the functions memcpy(), memset(), memmove()?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Is c better than c++?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
class HasStatic { static int I; }; Referring to the sample code above, what is the appropriate method of defining the member variable "I", and assigning it the value 10, outside of the class declaration? a) HasStatic I = 10; b) int static I = 10; c) static I(10); d) static I = 10; e) int HasStatic::I = 10;
What is the use of pointer in c++ with example?