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


How do you allocate and deallocate memory in C++?



How do you allocate and deallocate memory in C++?..

Answer / hrpynux@gmail.com

Use the malloc() function to allocate memory in designated blocks and the new function to create a new function. To reallocate memory, the realloc() function is used. When finished, always include a free() function in order to free up the memory. If you used new(), use delete() to free up the memory.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Copy Linked List using recursive function?

2 Answers   Persistent,


What is polymorphism & list its types in c++?

0 Answers  


What is the best book for c++ beginners?

0 Answers  


Explain the purpose of the keyword volatile.

0 Answers  


What is the difference between = and == in C?

20 Answers   Christ University, Intel,


What is a v-table?

0 Answers  


What is c++ map?

0 Answers  


What is the best c++ book?

0 Answers  


What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

0 Answers  


What is a modifier in c++?

0 Answers  


what is upcasting in C++?

0 Answers  


Categories