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

How do you declare A pointer to a function which receives nothing and returns nothing

1174


Mention the storage classes in c++.

1026


Differentiate between realloc() and free().

982


Comment on local and global scope of a variable.

1084


What is the main purpose of overloading operators?

1054


How to implement is-a and has-a class relationships?

959


What is vector processing?

1114


What is data binding in c++?

903


Show the declaration for a static member variable.

954


How do you establish an is-a relationship?

1078


What is an incomplete type in c++?

1210


Explain class invariant.

992


What is the arrow operator in c++?

950


What is the difference between a declaration and a definition?

1041


What is the difference between cin.read() and cin.getline()?

1016