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...

Shall we use 'free' to free memory assigned by new, What are
the further consequences??

Answer Posted / nishikant sahu

Yes you can but not recommend, b'c some time when you class
hold the heap memory it can't be free by "Free" b'c of no
constructor call happening via "Free" and you get the memory
leak. so use New/ delete or malloc/free pair.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a flag in c++?

1104


What is the oldest programming language?

1060


Which should be more useful: the protected and public virtuals?

1087


What is difference between c++ and c ++ 14?

1110


How to declare a function pointer?

1044


How static variables and local variablesare similar and dissimilar?

1093


What do you understand by zombie objects in c++?

1160


What is void pointer in c++ with example?

1133


Is java easier than c++?

1075


What is the full form nasa?

1179


What is the use of 'using' declaration in c++?

1191


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

1150


In a function declaration what does extern means?

1105


Explain the isa and hasa class relationships.

1098


Why is c++ a mid-level programming language?

1082