What is the difference among malloc/free and new/delete?, C/C++ Programming

What is the difference among malloc/free and new/delete?

A: Malloc/free do not know about destructors and constructors. New & delete create and destroy objects, whereas malloc & free allocate and deallocate memory.

 

Posted Date: 3/16/2013 3:20:37 AM | Location : United States







Related Discussions:- What is the difference among malloc/free and new/delete?, Assignment Help, Ask Question on What is the difference among malloc/free and new/delete?, Get Answer, Expert's Help, What is the difference among malloc/free and new/delete? Discussions

Write discussion on What is the difference among malloc/free and new/delete?
Your posts are moderated
Related Questions
what is the function of spanning tree in graph algorithm?

Write a program called A1Q3, that reads it the radius of a circle as an integer and prints the circle's diameter, circumference and area.  Use a constant value for pi.  Do all calc

Write a C program to compute the factorial of  5 i.e. 1x2x3x4x5 etc Write a C program to calculate the output Y for a given value of X for the following formula.       Y=X 2

limitation of linear array

C Program for FIND EVEN & ODD NO.S IN THE ARRAY #include stdio.h> #include string.h> #include conio.h> void main() {           int i=0,j=0, l_e[100],l_o[100];

lcm program.

Ask questionByteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular

how to see inbox details of a particular email adress on console

A: Using the extern "C" linkage specification around the C function declarations. Programmers must know about mangled function names and type-safe linkages. After that they must

I need help to understand and do this assignment ********************************************************* You are to insert the missing code in the C program given for combinatio