the difference between new and malloc

Answer Posted / pushpankar mishra

malloc need type casting where as the new operator does not
require this incase if it is character type then char* is
needed in malloc where as for new we do not need this

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different oops concepts?

800


Is enum a class?

833


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1914


Why do while loop is used?

814


Why multiple inheritance is not allowed?

865


Can an interface inherit a class?

824


How do you use inheritance in unity?

838


how to get the oracle certification? send me the answer

1933


What is interface in oop?

902


What is property in oops?

822


What is inheritance and how many types of inheritance?

859


What is class in oop with example?

868


What is difference between abstraction and encapsulation?

851


What is polymorphism and its types?

841


What is interface? When and where is it used?

1929