What is the difference between new/delete and malloc/free?
Answer Posted / neelam saini
Malloc/free do not know about constructors and destructors. New and delete create and destroy objects, while malloc and free allocate and deallocate memory.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use clrscr in c++?
Is there a sort function in c++?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What are activex and ole?
What is the difference between a baller and a reference in C++?
What are the uses of pointers?
Why is c++ difficult?
What is c++ mutable?
Why can’t you call invariants() as the first line of your constructor?
In what situations do you have to use initialization list rather than assignment in constructors?
What is algorithm in c++ programming?
Is c++ a difficult language?
Evaluate !(1&&1||1&&0) a) Error b) False c) True
When does a name clash occur in c++?
Is overriding possible in c++?