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 will happen if I allocate memory using "new" and free
it using "free" or allocate sing "calloc" and free it using
"delete"?

Answer Posted / roshan p.r.

Hi,

you cannot free a memory allocated with new using "free"
and in the same way callac with "delete"

because they are incompatable

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of endl in c++ give an example?

1215


What do nonglobal variables default to a) auto b) register c) static

1199


What is endl?

1209


Explain about Garbage Collector?

1167


What is the iunknown interface?

1185


What is the outcome of cout< a) 16 b) 17 c) 16.5

1068


What is the difference between multiple and multilevel inheritance in c++?

1182


What is const in c++?

1159


What are the types of pointer?

1145


What is difference between malloc()/free() and new/delete?

1223


Is java easier than c++?

1076


Why c++ is created?

1056


What is the use of bit fields in structure declaration?

1031


List down the guideline that should be followed while using friend function.

1117


State the difference between delete and delete[].

1168