What is the difference between new/delete and malloc/free?
Answer / 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 |
What are formatting flags in ios class?
What is the best c++ compiler for windows 10?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What are the three types of access specifiers in C++?
Why are pointers not used in c++?
What is the purpose of templates in c++?
How const functions will be treated by compiler?
What are the differences between java and c++?
C is to C++ as 1 is to a) What the heck b) 2 c) 10
How do you declare a set in c++?
What is buffer and example?
Why is c++ difficult?