What is the difference between operator new and the new
operator?
Answers were Sorted based on User's Feedback
Answer / vrushali
Operator new is a function name used for operator overloading and new operator is used for allocating memory
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / guest
operator new is just like malloc and
new is the conventinal new in C++
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / man
operator new is nothing
And new operator is used to allocate memory on the heap
| Is This Answer Correct ? | 0 Yes | 6 No |
What is the use of class in c++?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
Please explain class & object in c++?
What is the use of structure in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
How can you link a c++ program to c functions?
Explain selection sorting?
How the delete operator differs from the delete[]operator?
What apps are written in c++?
What is the best c++ book for beginners?
Why is c++ still used?
What do you mean by inheritance in c++?