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

how to write a program using arrays

Write a function that takes in a number n and divides the screen into n vertical bars, alternating black and white. (What should you do if someone puts in n=0 or n=-99?)


i have a project in BDD(Binary Decision Diagram).. where i have to use BDD library...i m using cudd package which uses BDD technique...i download cudd package..try to run in vc++ 6

#include stdio.h #include math.h float discharge(float,float); void main()   {   char prompt;      float time,out,cr;   cr = 100e-6;   for (time = 0;time   {   /* call th


Write a function that calculates the number of elapsed days between two dates. For example the days between Feb 3, 1970 and June 21, 1980? Becareful for the Leap year.

Question 1 Consider you have to find out average marks of 100 students in a class. Write simple program(s) using different iteration statements to accomplish it Question 2 Expla

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b