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 a class template?
why all c++ program must have default constructor?
What is the keyword auto for?
Distinguish between new and malloc and delete and free().
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is rtti in c++?
Difference between Top down and bottom up approaches for a given project ?
14 Answers BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,
Are strings immutable in c++?
What are c++ stream classes?
Explain unexpected() function?
Is there any difference between int [] a and int a [] in c++?
Check for Balanced Parentheses using Stack?