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
How to allocate memory dynamically for a reference?
What is meant by a delegate?
What is meant by entry controlled loop?
Difference between pointer to constant vs. Pointer constant
Can you sort a set c++?
What is main function in c++ with example?
What is std namespace in c++?
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Explain what is oop?
What is the importance of mutable keyword?
What is a type library?
What is the most common mistake on c++ and oo projects?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is linked list in c++?
explain the reference variable in c++?