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 / sanjay makwana, puna

When you allocate a memory using new then constructor will
be called but when use a free that time destructor will not
be called.

Same vice versa for calloc and delete.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c++ called oops?

1272


Write a program to show polymorphism in C++?

1203


What does iomanip mean in c++?

1277


Why null pointer is used?

1095


How would you use the functions memcpy(), memset(), memmove()?

1146


What are the characteristics of friend functions?

1073


what are the decision making statements in C++? Explain if statement with an example?

1146


How many types of comments are there in c++?

1051


What do you mean by overhead in c++?

1142


What is data hiding c++?

1094


What is abstract keyword in c++?

1119


What are all predefined data types in c++?

1171


why and when we can declar member fuction as a private in the class?

2137


Write a note about the virtual member function?

1112


What is the purpose of extern storage specifier?

1256