Answer Posted / nashiinformaticssolutions
o new initializes the object and calls its constructor.
o malloc allocates memory but does not call constructors.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Does c++ support multilevel and multiple inheritances?
What do you mean by persistent and non persistent objects?
What is a multimap c++?
Explain static and dynamic memory allocation with an example each.
Difference between pointer to constant and constant pointer to a constant. Give example.
What do you mean by function overriding & function overloading in c++?
Why do we need constructors in c++?
What are the two types of polymorphism?
Explain "const" reference arguments in function?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
Explain bubble sorting.
What is setw manipulator in c++?
Why is polymorphism useful?
What is struct c++?
Can turbo c++ run c program?