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

Will a catch statement catch a derived exception if it is looking for the base class?

1013


What is c++ programming language?

1106


What is the use of default constructor?

1099


What is abstraction in c++?

1360


What is double in c++?

1072


Who created c++?

1065


Is java the same as c++?

994


How much is c++ certification?

1053


How does c++ structure differ from c++ class?

1134


What does the ios::ate argument do?

1189


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1044


List the advantages of inheritance.

1136


Differentiate between the manipulator and setf( ) function?

1210


Explain how we implement exception handling in c++?

1061


What is a virtual destructor? Explain the use of it?

992