What is difference between new and malloc?

Answer Posted / vivin

new is a operator used for memory allocation in c++ & java

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are main features of oop?

631


What are the benefits of polymorphism?

620


What is the oops and benefits of oops programming?

550


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1650


Why is polymorphism used?

583






What is encapsulation process?

577


Is data hiding and abstraction same?

567


Why is oop useful?

602


What is polymorphism explain its types?

678


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1618


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1835


Why we use classes in oop?

578


Why interface is used?

551


What is overloading in oop?

574


What is difference between oop and pop?

613