Difference between new operator and operator new

Answers were Sorted based on User's Feedback



Difference between new operator and operator new..

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

Difference between new operator and operator new..

Answer / nutan

pls refer
http://objectmix.com/c/34028-difference-between-new-operator-new.html

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More OOPS Interview Questions

what does exactly the linker do?

1 Answers  


create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

0 Answers  


what is multi level inheritance give n example ?

13 Answers   HDFC, Hulas Steel, Ness Technologies,


What is abstraction oop?

0 Answers  






How oops is better than procedural?

0 Answers  


Can destructor be overloaded?

0 Answers  


What is overloading and its types?

0 Answers  


Can you name some types of inheritance?

1 Answers   Motorola,


What are classes oop?

0 Answers  


What is the difference between static polymorphism and dynamic polymorphism?

0 Answers  


What is conditional Compilation?

3 Answers   emc2, HCL,


Categories