What is the difference between creating an object,
using 'new' and using 'malloc'?
Answer Posted / guna
malloc
1) can't initialize the memory
2)type casting is required
3)malloc is a function.
4)can't be overloaded.
new
1) memory can be initialized
2)no type casting for operator
3)new is an operator
4)can be overloaded.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do c++ programmers do?
What are the differences between new and malloc?
Which language is pure oop?
What is data binding in oops?
Explain selection sorting. Also write an example.
Difference between a homogeneous and a heterogeneous container
State two differences between C and C++.
What is a hashmap c++?
What is a constructor in c++ with example?
Explain Memory Allocation in C/C++ ?
Does c++ cost money?
Define basic type of variable used for a different condition in C++?
What is array in c++ example?
What is a far pointer? where we use it?
What is a .h file c++?