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
Describe new operator and delete operator?
What is a static member?
What is a list c++?
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Write a recursive program to calculate factorial in c++.
What is a lambda function c++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?
class type to basic type conversion
What is a hashmap c++?
What is a standard template library (stl)? What are the various types of stl containers?
Can a built-in function be recursive?
What is inheritance in simple words?
What is flush () in c++?
how to connect with oracle 9i with server in socket program in c/c++
How can you link a c++ program to c functions?