What is difference between new and malloc?

Answer Posted / sanjeevkumar.v

malloc --it mean memmory allocation .it will be.crete a
memory from a element



NEW--- newly crate a program are crete a memory allocation

Is This Answer Correct ?    1 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation oop?

583


Where You Can Use Interface in your Project

1437


What are the three main types of variables?

610


What does and I oop mean?

625


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

948






What is inheritance and how many types of inheritance?

632


What is a superclass in oop?

677


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1662


How is polymorphism achieved?

587


what are the ways in which a constructors can be called?

1589


What are the data types in oop?

615


Are polymorphisms mutations?

711


Can an interface inherit a class?

567


How do you explain polymorphism?

600


Why do we use class?

644