Define macro.
No Answer is Posted For this Question
Be the First to Post Answer
Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.
Why do we need c++?
Explain the need for "Virtual Destructor"?
Explain deep copy?
What are smart pointers?
Explain virtual class and friend class.
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
Refer to a name of class or function that is defined within a namespace?
Write a note about the virtual member function?
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.
What is c++ library?