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 encapsulation example?

1065


Why do pointers exist?

1104


what type of question are asked in thoughtworks pair programming round ?

2221


What is the diamond problem in inheritance?

1143


What is inheritance in simple words?

1058


Why multiple inheritance is not possible?

1078


What is pure oop?

1114


What is polymorphism explain?

1268


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1863


What are main features of oop?

1123


How Do you Code Composition and Aggregation in C++ ?

25488


What is inheritance write a program to show use of inheritance?

1149


What is encapsulation selenium?

1020


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2320


What is a null tree?

1143