Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / neelam saini

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

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the prototype of printf function?

1235


Why should we use null or zero in a program?

1098


Does c++ have arraylist?

1081


Define anonymous class.

1135


What is a c++ map?

1515


What are the implicit member functions of class?

1133


What is the difference between prefix and postfix versions of operator++()?

1134


What type of question are asked in GE code writing test based on c++ data structures and pointers?

4030


Can you explicitly call a destructor on a local variable?

1071


What does scope resolution operator do?

1167


What is the difference between C and CPP?

1212


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2628


What is the basic structure of c++ program?

1156


How does atoi function work?

1178


What is using namespace std in c++?

1207