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
What is the prototype of printf function?
Why should we use null or zero in a program?
Does c++ have arraylist?
Define anonymous class.
What is a c++ map?
What are the implicit member functions of class?
What is the difference between prefix and postfix versions of operator++()?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
Can you explicitly call a destructor on a local variable?
What does scope resolution operator do?
What is the difference between C and CPP?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is the basic structure of c++ program?
How does atoi function work?
What is using namespace std in c++?