What is the difference between new/delete and malloc/free?
Answer / neelam saini
Malloc/free do not know about constructors and destructors. New and delete create and destroy objects, while malloc and free allocate and deallocate memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the c++ access specifiers?
What are put and get pointers?
What is nested class in c++?
Give example of a pure virtual function in c++?
make a middle node of doubly linklist to the top of the list
What do you mean by early binding?
what is C++ exceptional handling?
what is polymorphism?
Why do we need constructors in c++?
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;
Describe run-time type identification?
Do class declarations end with a semicolon?