R
Q. Which of the following is true about new when compared with malloc: 1) new is an operator, malloc is a function 2) new calls constructor, malloc doesn’t 3) new returns appropriate pointer, malloc returns void * and pointer needs to typecast to appropriate type.
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Identify the type of variables.
Q. Class function which is called automatically as soon as the object is created is called as __
Q. How many times does the “cout” in line 12 run?
Q. There is nothing like a virtual constructor of a class.
Q. What is the output of below program?
Q. When a virtual function is redefined by the derived class, it is called___________.
Q. Array containing elements are numbered as 0,1,2,3? these numbers are called
Discusssion
Login to discuss.