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 is the difference between the functions rand(), random(), srand() and randomize()?
What is an object in c++?
Can you declare an array without a size in c++?
What is the basic difference between C and C++?
What is the difference between public, private, and protected access?
What is the purpose of template?
How is computer programming useful in real life?
What is a hash function c++?
What are structs in c++?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is c++ manipulator?
What is atoi in c++?