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

how to access grid view row?

2165


Can a program run without main?

1155


What are the rules about using an underscore in a c++ identifier?

1089


What are files in c++?

972


How do you traverse a btree in backward in-order?

978


What is the use of class in c++?

997


Describe protected access specifiers?

1137


What is the role of static keyword for a class member variable?

1028


What is the basic structure of a c++ program?

1075


Write my own zero-argument manipulator that should work same as hex?

996


How would you implement a substr() function that extracts a sub string from a given string?

989


Out of fgets() and gets() which function is safe to use?

1067


give me an example for testing a program showing the test path .show how the test is important and complex.

2855


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

928


What is a v-table?

1097