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
What is function declaration in c++ with example?
Explain how overloading takes place in c++?
When is the copy constructor called?
What is the use of endl in c++?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
what are the characteristics of Class Members in C++?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Why do we need templates?
Difference between pass by value and pass by reference?
In c++, what is the difference between method overloading and method overriding?
What are put and get pointers?
What is c++ virtual inheritance?
What is searching? Explain linear and binary search.
Will c++ be replaced?
Is there any difference between int [] a and int a [] in c++?