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

Can we get the value of ios format flags?

1122


What is the standard template library (stl)?

1741


What is name hiding in c++?

1147


What is the best c++ compiler for windows 10?

1029


What is the first name of c++?

1044


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

1174


What is abstraction in c++?

1338


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

989


Does c++ have foreach?

1039


How can you quickly find the number of elements stored in a static array?

1085


What are member functions used in c++?

1133


What is flush () in c++?

1070


what is data encapsulation in C++?

1055


Why do we need runtime polymorphism in c++?

1010


What does ctime() do?

1114