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

What does asterisk mean in c++?

0 Answers  


How do you clear a buffer in c++?

0 Answers  


What is a constant reference?

0 Answers  


What is the most useful programming language?

0 Answers  


Can a Structure contain a Pointer to itself?

0 Answers  


Why c++ is so important?

0 Answers  


Describe private, protected and public?

0 Answers  


How to declare a pointer to an array of integers?

0 Answers  


How can I learn c++ easily?

0 Answers  


Does c++ cost money?

0 Answers  


What is set in c++?

0 Answers  


What is the function to call to turn an ascii string into a long?

0 Answers  


Categories