Difference between new operator and operator new
Answers were Sorted based on User's Feedback
Answer / skybeaver
The "new" operator allocates a new instance of an object
from the heap, utilising the most appropriate constructor
for the arguments passed.
Like many operators in C++, the "new" operator for a
particular class can be overriden, although there is rarely
a need to do so. "operator new" is the mechanism for
overriding the default heap allocation logic. Ask your
interviewer to provide you with a concrete example of when
he or she has been required to do this.
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / nutan
pls refer
http://objectmix.com/c/34028-difference-between-new-operator-new.html
| Is This Answer Correct ? | 3 Yes | 4 No |
Can private class be inherited?
what is difference between thread and programme.
What are the valid types of data that the main () can return in C/C++ language
how does a main() in C++ is different from main() in C?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
pointers are support in C#? if yes then how to use it?
8 Answers Softvision Solution,
write a c++ code of diagonal matrix.
What is abstract class in oops?
What are the 3 pillars of oop?
oops concept is used for?
Have you ever used threads?
What is deep and shalow copy?