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 / ekta

free is not compatible with new.
free wont recognise the memory allocated by new and should
gie some error i guess.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two main components of c++?

1157


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

1135


What is the maximum combined length of command line arguments including the space between adjacent arguments?

1042


What is name hiding in c++?

1225


How to get the current position of the file pointer?

1103


what are the types of Member Functions?

1178


Should you pass exceptions by value or by reference?

1185


What is the difference between a definition and a declaration?

1118


Explain this pointer?

1114


What do you mean by const correctness?

1141


What is virtual base class uses?

1450


What size is allocated to the union variable?

1131


What is the use of "new" operator?

1181


List the types of polymorphism in c++?

1155


Can comments be nested?

1085