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...

why the memory allocated with new cant be freed using free()

Answer Posted / bharti

Because with new operator in C++ delete operator is used to
deallocate the memory. And with malloc() free() is used. S
it may not be supported by some of the compilers to free
memory with free() created by new.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oop?

1085


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2140


What is the difference between encapsulation and polymorphism?

1048


Can we create object of interface?

1064


What is abstraction oop?

1028


Explain the advantages of inheritance.

1076


What is the difference between inheritance and polymorphism?

1047


What is super in oop?

1088


What is class and object with example?

1058


What is the difference between procedural programming and oops?

1059


What is the point of oop?

1105


What does no cap mean?

1008


What are the 3 principles of oop?

1054


What is object in oop?

1061


How do you explain polymorphism?

1014