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
Are c and c++ different?
What is a dll entry point?
Can you please explain the difference between overloading and overriding?
What exactly is polymorphism?
What is a storage class used in c++?
What is c++ used for in games?
How much do coding jobs pay?
What is the use of 'using' declaration in c++?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
Explain function prototypes in C++.
What is placement new?
What does n mean in c++?
How the virtual functions maintain the call up?
What is the difference between multiple and multilevel inheritance in c++?