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 |
What is ambiguity in c++
What is oops?what is its use in software engineering?
what is ns string? what is ns array?
who is the father of OPPS
define a string class. overload the operator == to compare two strings
2 Answers Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is encapsulation c#?
i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
can we create and enter the data & hide files using programmes ?
What is a linked list?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?