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 oops in simple words?
What is the difference between inheritance and polymorphism?
Why multiple inheritance is not possible?
What is abstraction in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What does no cap mean?
Why do while loop is used?
Why is encapsulation used?
how to get the oracle certification? send me the answer
Why we use classes in oop?
Why do we need oop?
What does and I oop mean in text?
Is this job good for future? can do this job post grduate student?
What is for loop and its syntax?
State what is encapsulation and friend function?