Answer Posted / prakruthi
new automatically calls the constructor while malloc()
dosen't., also new being an operator, it can be overloaded.
since malloc returns a void pointer it is necessary to
explicitly typecast it into an appropriate type of pointer.
This gets completely avoided when we are using new operator.
Is This Answer Correct ? | 25 Yes | 2 No |
Post New Answer View All Answers
What is polymorphism explain?
What is coupling in oop?
What is abstraction in oops with example?
Why is oop useful?
How do you define social class?
Advantage and disadvantage of routing in telecom sector
What is polymorphism used for?
Why multiple inheritance is not allowed?
Which language is not a true object oriented programming language?
Templates mean
how to get the oracle certification? send me the answer
What is abstract class in oops?
What is the difference between a mixin and inheritance?
hi all..i want to know oops concepts clearly can any1 explain??
What is overloading and its types?